You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We would love to have a running storybook for components that we add to our app and customize. It's great that SaladUI components have their own stories already, and we'd love to take advantage of that when adding components to our repo using mix salad.add
Is there a world where an optional flag could be added to this command that will add the corresponding <component>.story.exs file?
Ie mix salad.add sheet --with-story would create:
lib/app_web/components/sheet.ex
storybook/sheet.ex
Of course adding this flag would require that you have a storybook directory locally, or perhaps another flag could specify the storybook directory you'd like to have it added to?
The text was updated successfully, but these errors were encountered:
Thanks @oliverswitzer for your suggestion, it requires many extra steps to set up storybook. So we can't add this to next milestone. Maybe we will consider adding it later
Ah sorry, I didn’t mean that this command would also set up storybook and
pull it in for you. If the storybook folder didn’t exist when you passed
the flag to add story file I assumed it could just error saying something
like “please add storybook first”
Hi,
We would love to have a running storybook for components that we add to our app and customize. It's great that SaladUI components have their own stories already, and we'd love to take advantage of that when adding components to our repo using
mix salad.add
Is there a world where an optional flag could be added to this command that will add the corresponding
<component>.story.exs
file?Ie
mix salad.add sheet --with-story
would create:lib/app_web/components/sheet.ex
storybook/sheet.ex
Of course adding this flag would require that you have a
storybook
directory locally, or perhaps another flag could specify the storybook directory you'd like to have it added to?The text was updated successfully, but these errors were encountered: