Current section
Files
Jump to
Current section
Files
priv/storybook/components/card.story.exs
defmodule Storybook.Components.Card do
use PhoenixStorybook.Story, :component
def function, do: &Doggo.card/1
def variations do
[
%Variation{
id: :default,
slots: [
"""
<:image>
<img src="https://github.com/woylie/doggo/blob/main/dog_poncho.jpg?raw=true" alt="Picture of a dog dressed in a poncho." />
</:image>
""",
"""
<:main>
The next dog fashion show is coming up quickly. Here's what you need
to look out for.
</:main>
""",
"""
<:header><h2>Dog Fashion Show</h2></:header>
""",
"""
<:footer>
<span>2023-11-15 12:24</span>
<span>Events</span>
</:footer>
"""
]
}
]
end
end