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

View Source

Behaviour implemented by any live component story

Summary

Callbacks

aliases()

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

attributes()

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

component()

@callback component() :: atom()

container()

@callback container() :: atom()

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()

variations()