From 4e941f7aa5b0228a37f1bc3e28a34d1dca27167f Mon Sep 17 00:00:00 2001 From: p-sw Date: Sun, 19 May 2024 15:24:02 +0900 Subject: [PATCH] feat: use presets in button story --- packages/react/stories/Button.stories.ts | 16 ++++------------ 1 file changed, 4 insertions(+), 12 deletions(-) diff --git a/packages/react/stories/Button.stories.ts b/packages/react/stories/Button.stories.ts index cae470a..30f82e3 100644 --- a/packages/react/stories/Button.stories.ts +++ b/packages/react/stories/Button.stories.ts @@ -14,6 +14,7 @@ const meta: Meta = { }, decoration: { options: ["none", "link"], control: "select" }, onClick: { table: { disable: true } }, + preset: { options: ["default", "ghost", "link"], control: "select" }, }, args: { children: "Button", onClick: () => console.log("clicked") }, }; @@ -23,19 +24,13 @@ type Story = StoryObj; export const Default: Story = { args: { - border: "solid", - background: "default", - decoration: "none", - size: "md", + preset: "default", }, }; export const Ghost: Story = { args: { - border: "none", - background: "ghost", - decoration: "none", - size: "md", + preset: "ghost", }, }; @@ -50,9 +45,6 @@ export const Outline: Story = { export const Link: Story = { args: { - border: "none", - background: "link", - decoration: "link", - size: "md", + preset: "link", }, };