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 - a storybook UI theme css file in
assets/css/storybook_theme.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.
If you use Igniter, mix phoenix_storybook.install generates the
same files and applies all the setup instructions automatically.