Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature Request] mix salad.add <component> optionally copies storybook module (*.story.exs) for the component #140

Open
oliverswitzer opened this issue Jan 23, 2025 · 2 comments

Comments

@oliverswitzer
Copy link

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?

@bluzky
Copy link
Owner

bluzky commented Jan 24, 2025

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

@oliverswitzer
Copy link
Author

oliverswitzer commented Jan 24, 2025 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants