# `mix phx.gen.storybook`
[🔗](https://github.com/phenixdigital/phoenix_storybook/blob/v1.5.0/lib/mix/tasks/phx.gen.storybook.ex#L1)

Generates a Storybook and provides setup instructions.

```bash
$> 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](https://hexdocs.pm/igniter), `mix phoenix_storybook.install` generates the
same files and applies all the setup instructions automatically.

---

*Consult [api-reference.md](api-reference.md) for complete listing*
