# `mix dog.gen.stories`
[🔗](https://github.com/woylie/doggo/blob/0.14.6/lib/mix/tasks/dog.gen.stories.ex#L1)

Generates Phoenix Storybook modules for all configured components.

## Usage

Write stories for all configured components:

    mix dog.gen.stories -m MyAppWeb.CoreComponents -o storybook -a

Write the story for a single component:

    mix dog.gen.stories -m MyAppWeb.CoreComponents -o storybook -c button

## Options

- -m, --module: The module where the Doggo components are compiled.
- -o, --output: The Storybook folder.
- -c, --component: The name of the component.
- -a, --all: Write stories for all configured components.
- -f, --force: Force folder creation and overwrite existing stories.

---

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