mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-26 20:56:48 +00:00
- Once story has been created, still need to generate the story itself (in json file format). Help with command: `rake view_component_storybook:write_stories_json`
14 lines
255 B
Ruby
14 lines
255 B
Ruby
class ExampleComponentStories < ViewComponent::Storybook::Stories
|
|
story(:with_short_text) do
|
|
controls do
|
|
text(:title, 'OK')
|
|
end
|
|
end
|
|
|
|
story(:with_long_text) do
|
|
controls do
|
|
text(:title, 'This is a long text')
|
|
end
|
|
end
|
|
end
|