From 07ad04f8326e0fc206f9755a66ad11b80f034948 Mon Sep 17 00:00:00 2001 From: p-sw Date: Sat, 18 May 2024 21:26:58 +0900 Subject: [PATCH] feat: add stories for new variants in button --- packages/react/stories/Button.stories.ts | 27 +++++++++++++++++++++++- 1 file changed, 26 insertions(+), 1 deletion(-) diff --git a/packages/react/stories/Button.stories.ts b/packages/react/stories/Button.stories.ts index dbb6103..a434b08 100644 --- a/packages/react/stories/Button.stories.ts +++ b/packages/react/stories/Button.stories.ts @@ -5,8 +5,12 @@ const meta: Meta = { component: Button, tags: ["autodocs"], argTypes: { - variant: { options: ["default", "ghost"], control: "select" }, + variant: { + options: ["default", "ghost", "outline", "link"], + control: "select", + }, size: { options: ["sm", "md", "lg"], control: "select" }, + onClick: { table: { disable: true } }, }, args: { children: "Button", onClick: () => console.log("clicked") }, }; @@ -20,3 +24,24 @@ export const Default: Story = { size: "md", }, }; + +export const Ghost: Story = { + args: { + variant: "ghost", + size: "md", + }, +}; + +export const Outline: Story = { + args: { + variant: "outline", + size: "md", + }, +}; + +export const Link: Story = { + args: { + variant: "link", + size: "md", + }, +};