Skip to content

Commit

Permalink
story: Button Component
Browse files Browse the repository at this point in the history
  • Loading branch information
Sunjae95 committed Nov 16, 2024
1 parent e4ca654 commit ee71c9f
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions src/components/Button/Button.stories.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
import type { Meta, StoryObj } from "@storybook/react";
import { fn } from "@storybook/test";

import Button from "./Button";

const meta = {
component: Button,
} satisfies Meta<typeof Button>;

export default meta;

export const Default: StoryObj<typeof meta> = {
args: {
variant: "primary",
children: "test",
onClick: fn(),
},
};

export const Secondary: StoryObj<typeof meta> = {
args: { ...Default.args, variant: "secondary" },
};

0 comments on commit ee71c9f

Please sign in to comment.