View Source mix phx.gen.storybook (phx_live_storybook v0.4.0)
Generates a Storybook and provides setup instructions.
$> mix phx.gen.storybook
The generated files will contain:
- the storybook backend in
lib/my_app_web/storybook.ex
- a dummy component in
storybook/components/my_component.story.exs
- a dummy page in
storybook/my_page.story.exs
- a custom js in
assets/js/storybook.js
- a custom css in
assets/css/storybook.css
The generator supports the --no-tailwind
flag if you want to skip the TailwindCSS specific bit.