Skip to content

Commit

Permalink
๐Ÿ’„ design: Button ์Šคํ† ๋ฆฌ๋ถ์— size, disabled prop ์ถ”๊ฐ€
Browse files Browse the repository at this point in the history
  • Loading branch information
bbearcookie committed Jan 29, 2024
1 parent 854e8d2 commit 1b63cd3
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions src/components/Button/index.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,12 @@ const meta = {
title: 'Components/Button',
component: Button,
tags: ['autodocs'],
argTypes: {},
argTypes: {
disabled: {
control: 'boolean',
description: '๋ฒ„ํŠผ์˜ ๋น„ํ™œ์„ฑํ™” ์—ฌ๋ถ€์ž…๋‹ˆ๋‹ค.',
},
},
} satisfies Meta<typeof Button>;

export default meta;
Expand All @@ -17,12 +22,9 @@ type Story = StoryObj<typeof meta>;
export const Default: Story = {
args: {
variant: 'primary',
children: (
<>
<PencilLine />
<p>button</p>
</>
),
size: 'md',
children: 'button',
disabled: false,
},
};

Expand Down Expand Up @@ -93,7 +95,7 @@ export const SemiTransparent: Story = {
<PencilLine />
<p>button</p>
</Button>
<Button disabled variant="semi-transparent">
<Button variant="semi-transparent">
<PencilLine />
<p>button</p>
</Button>
Expand Down

0 comments on commit 1b63cd3

Please sign in to comment.