Skip to content

Commit

Permalink
add story for label component
Browse files Browse the repository at this point in the history
  • Loading branch information
woylie committed Dec 13, 2023
1 parent fd7f07e commit beb8869
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions priv/storybook/components/label.story.exs
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
defmodule Storybook.Components.Label do
use PhoenixStorybook.Story, :component

def function, do: &Doggo.label/1

def variations do
[
%Variation{
id: :default,
slots: ["E-mail"]
},
%Variation{
id: :required,
attributes: %{required: true},
slots: ["E-mail"]
}
]
end
end

0 comments on commit beb8869

Please sign in to comment.