Skip to content

Commit

Permalink
add story for card component
Browse files Browse the repository at this point in the history
  • Loading branch information
woylie committed Dec 14, 2023
1 parent 5aba84a commit 1129114
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions priv/storybook/components/card.story.exs
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
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

0 comments on commit 1129114

Please sign in to comment.