View Source mix phx.gen.storybook (phoenix_storybook v0.7.1)
Generates a Storybook and provides setup instructions.
$> mix phx.gen.storybook
The generated files will contain:
- a storybook backend in
lib/my_app_web/storybook.ex
- a custom js file in
assets/js/storybook.js
- a custom css file in
assets/css/storybook.css
- scaffolding including example stories for your own storybook in
storybook/
The generator supports the --no-tailwind
flag if you want to skip the TailwindCSS specific bit.