Skip to content

Commit

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

def function, do: &Doggo.field_errors/1

def variations do
[
%Variation{
id: :default,
attributes: %{
for: "user_name",
errors: [
"should be at most 30 characters",
"should only contain ASCII characters"
]
}
}
]
end
end

0 comments on commit 4fb4190

Please sign in to comment.