Skip to content

Commit

Permalink
docs: Add Button to storybook
Browse files Browse the repository at this point in the history
  • Loading branch information
eryc-cc committed Jul 21, 2022
1 parent c9a3766 commit 5926ea6
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions stories/atoms/button.stories.tsx
Original file line number Diff line number Diff line change
@@ -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<typeof Button> = (args) => <Button {...args}>Button</Button>;

export const Default = ButtonTemplate.bind({});
Default.args = { type: "primary" };

0 comments on commit 5926ea6

Please sign in to comment.