Create first story for ExampleComponent

- 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`
This commit is contained in:
Jean-Baptiste Bellet
2021-03-31 21:03:06 +02:00
parent 57e5214217
commit 39683bd814

View File

@@ -0,0 +1,13 @@
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