View Source PhxLiveStorybook.StoryGroup (phx_live_storybook v0.3.0)
A story group is a set of similar stories that will be rendered together in a single preview <pre> block.
usage
Usage
def stories do
[
%StoryGroup{
id: colors,
description: "Different color buttons",
stories: [
%Story{
id: :blue_button,
attributes: %{label: "A button", color: :blue }
},
%Story{
id: :red_button,
attributes: %{label: "A button", color: :red }
},
%Story{
id: :green_button,
attributes: %{label: "A button", color: :green }
}
]
}
]
end