From beb8869f3ea32959920c1cb92301fede12d79152 Mon Sep 17 00:00:00 2001 From: Mathias Polligkeit Date: Thu, 14 Dec 2023 00:08:28 +0900 Subject: [PATCH] add story for label component --- priv/storybook/components/label.story.exs | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 priv/storybook/components/label.story.exs diff --git a/priv/storybook/components/label.story.exs b/priv/storybook/components/label.story.exs new file mode 100644 index 00000000..1f60d40c --- /dev/null +++ b/priv/storybook/components/label.story.exs @@ -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 \ No newline at end of file