Skip to content

Commit

Permalink
feat: 버튼 컴포넌트 스토리북 작성
Browse files Browse the repository at this point in the history
  • Loading branch information
miro-ring committed Jan 6, 2024
1 parent 03f2128 commit b682f58
Showing 1 changed file with 66 additions and 0 deletions.
66 changes: 66 additions & 0 deletions src/components/Button/Button.stories.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
import type { Meta, StoryObj } from '@storybook/react';

import Button from '.';

const meta: Meta<typeof Button> = {
title: 'Components/Button',
component: Button,
};

export default meta;

type Story = StoryObj<typeof Button>;

export const MiddleDefault: Story = {
args: {
children: 'MiddleDefault',
size: 'M',
state: 'default',
onClick: () => {},
},
};

export const MiddleDisabled: Story = {
args: {
children: 'MiddleDisabled',
size: 'M',
state: 'disabled',
onClick: () => {},
},
};

export const MiddleEnabled: Story = {
args: {
children: 'MiddleEnabled',
size: 'M',
state: 'enabled',
onClick: () => {},
},
};

export const LargeDefault: Story = {
args: {
children: 'LargeDefault',
size: 'L',
state: 'default',
onClick: () => {},
},
};

export const LargeDisabled: Story = {
args: {
children: 'LargeDisabled',
size: 'L',
state: 'disabled',
onClick: () => {},
},
};

export const LargeEnabled: Story = {
args: {
children: 'LargeEnabled',
size: 'L',
state: 'enabled',
onClick: () => {},
},
};

0 comments on commit b682f58

Please sign in to comment.