View Source PhxLiveStorybook.Variation (phx_live_storybook v0.2.0)
A variation is an example of how your component can be used.
Each variation will be displayed in the storybook as a code snippet alongside with the component preview.
usage
Usage
def variations do
[
%Variation{
id: :default,
description: "Default dropdown",
attributes: %{
label: "A dropdown",
},
slots: """
<:entry path="#" label="Account settings"/>
<:entry path="#" label="Support"/>
<:entry path="#" label="License"/>
"""
}
]
end