Skip to content

Commit 58b5968

Browse files
committed
Demonstrate list_arguments in playground preview
1 parent ba05c8a commit 58b5968

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

previews/primer/beta/border_box_preview.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@ module Beta
66
class BorderBoxPreview < ViewComponent::Preview
77
# @label Playground
88
#
9+
# @param list_id text
910
# @param padding [Symbol] select [default, condensed, spacious]
1011
# @param scheme [Symbol] select [default, neutral, info, warning]
11-
# @param list_id [String] text
12-
def playground(padding: :default, scheme: :default, list_id: nil)
13-
render(Primer::Beta::BorderBox.new(padding: padding, list_id: list_id)) do |component|
12+
def playground(padding: :default, scheme: :default, list_id: "my-list")
13+
render(Primer::Beta::BorderBox.new(padding: padding, list_arguments: { id: list_id })) do |component|
1414
component.with_header { "Header" }
1515
component.with_body { "Body" }
1616
component.with_row(scheme: scheme) { "#{scheme.to_s.capitalize} row one" }

0 commit comments

Comments
 (0)