# `PhoenixStorybook.Stories.Slot`
[🔗](https://github.com/phenixdigital/phoenix_storybook/blob/v1.1.0/lib/phoenix_storybook/stories/slot.ex#L1)

A slot is one of your component slots. Its structure mimics the LiveView 0.18.0 declarative
assigns.

Slots declaration will populate the Playground tab of your storybook, for each of your
components.

Supported keys:
- `id`: the slot id (required). Should match your component slot name.
  Use the id `:inner_block` for your component default slot.
- `doc`: a text documentation for this slot.
- `required`: `true` if the attribute is mandatory.

# `t`

```elixir
@type t() :: %PhoenixStorybook.Stories.Slot{
  attrs: [PhoenixStorybook.Stories.Attr.t()],
  doc: String.t(),
  id: atom(),
  required: boolean()
}
```

---

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