From 5926ea6ba53a79446004fa92a417f80e77f8e99b Mon Sep 17 00:00:00 2001 From: WAGMI Times Date: Wed, 20 Jul 2022 23:46:22 -0300 Subject: [PATCH] docs: Add Button to storybook --- stories/atoms/button.stories.tsx | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 stories/atoms/button.stories.tsx diff --git a/stories/atoms/button.stories.tsx b/stories/atoms/button.stories.tsx new file mode 100644 index 0000000000..ec321df35f --- /dev/null +++ b/stories/atoms/button.stories.tsx @@ -0,0 +1,20 @@ +import React from "react"; +import { ComponentStory, ComponentMeta } from "@storybook/react"; +import Button from "../../components/atoms/Button/button"; + +const storyConfig = { + title: "Design System/Atoms/Button", + argTypes: { + type: { + options: ["primary", "outline", "default", "link"], + control: { type: "select" } + } + } +}; + +export default storyConfig; + +const ButtonTemplate: ComponentStory = (args) => ; + +export const Default = ButtonTemplate.bind({}); +Default.args = { type: "primary" }; \ No newline at end of file