From ee71c9fc8486bc04697b24eff36676d8e0e518b1 Mon Sep 17 00:00:00 2001 From: SeonjaeLee Date: Fri, 15 Nov 2024 01:55:17 +0900 Subject: [PATCH] story: Button Component --- src/components/Button/Button.stories.tsx | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 src/components/Button/Button.stories.tsx diff --git a/src/components/Button/Button.stories.tsx b/src/components/Button/Button.stories.tsx new file mode 100644 index 00000000..f2d3244e --- /dev/null +++ b/src/components/Button/Button.stories.tsx @@ -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; + +export default meta; + +export const Default: StoryObj = { + args: { + variant: "primary", + children: "test", + onClick: fn(), + }, +}; + +export const Secondary: StoryObj = { + args: { ...Default.args, variant: "secondary" }, +};