Skip to content

Commit

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

def function, do: &Doggo.field_description/1

def variations do
[
%Variation{
id: :default,
attributes: %{for: "user_name"},
slots: [
"""
<:description>
only lowercase letters and numbers, max. 30 characters
</:description>
"""
]
}
]
end
end

0 comments on commit cfb329a

Please sign in to comment.