View Source PhxLiveStorybook.Stories.Slot (phx_live_storybook v0.4.5)

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.

Link to this section Summary

Link to this section Types

@type t() :: %PhxLiveStorybook.Stories.Slot{
  doc: String.t(),
  id: String.t(),
  required: boolean()
}