x
1
2
3
4
5
<ol> <li>One</li> <li>Two</li> <li>Three</li></ol>
1
2
3
4
5
render Elements::ListComponent.new do |list| list.with_item.with_content "One" list.with_item.with_content "Two" list.with_item.with_content "Three"end
This example uses the with_content
helper to set inline content.
You can read more about it in the ViewComponent slots documentation.
No params configured.
This is a custom panel! See the documentation for details on how to add custom panels to your Lookbook instance.
No assets to display.
Check out the button component preview to see an example with asset files.