PhoenixStorybook.Story.ComponentBehaviour behaviour (phoenix_storybook v0.9.1)

View Source

Behaviour implemented by any component story

Summary

Callbacks

aliases()

@callback aliases() :: [atom()]

attributes()

@callback attributes() :: [PhoenixStorybook.Stories.Attr.t()]

container()

@callback container() :: atom() | {atom(), [{atom(), String.t()}]}

function()

@callback function() :: function()

imports()

@callback imports() :: [{atom(), [{atom(), integer()}]}]

layout()

@callback layout() :: atom()

render_source()

@callback render_source() :: atom()

slots()

@callback slots() :: [PhoenixStorybook.Stories.Slot.t()]

template()

@callback template() :: String.t()

unstripped_doc()

@callback unstripped_doc() :: String.t() | [String.t()] | nil

variations()