View Source mix phx.gen.storybook (phx_live_storybook v0.4.5)
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
- an index file in
storybook/_root.index.exs
- a welcome page in
storybook/welcome.story.exs
- an icon component in
storybook/components/icon.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.