From d53051f9e817e2b59178d166a06890d341747677 Mon Sep 17 00:00:00 2001 From: Mathias Polligkeit Date: Sat, 16 Dec 2023 14:26:53 +0900 Subject: [PATCH] add story for drawer --- priv/storybook/components/drawer.story.exs | 68 ++++++++++++++++++++++ 1 file changed, 68 insertions(+) create mode 100644 priv/storybook/components/drawer.story.exs diff --git a/priv/storybook/components/drawer.story.exs b/priv/storybook/components/drawer.story.exs new file mode 100644 index 00000000..1a2cdf52 --- /dev/null +++ b/priv/storybook/components/drawer.story.exs @@ -0,0 +1,68 @@ +defmodule Storybook.Components.Drawer do + use PhoenixStorybook.Story, :component + + def function, do: &Doggo.drawer/1 + + def variations do + [ + %Variation{ + id: :default, + slots: [ + """ + <:brand> + + Pet Clinic + + + """, + """ + <:top> + + <:item> + + Dashboard + + + <:item> + + <:title>Content + <:item current_page> + + Posts + + + <:item> + + Comments + + + + + + + <:title>Search + <:item> + + + """, + """ + <:bottom> + + <:item> + + Settings + + + <:item> + + Logout + + + + + """ + ] + } + ] + end +end