-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTertiaryButton.stories.tsx
More file actions
99 lines (90 loc) · 1.85 KB
/
TertiaryButton.stories.tsx
File metadata and controls
99 lines (90 loc) · 1.85 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
import type { Meta, StoryObj } from '@storybook/react';
import TertiaryButton from '../../ui/buttons/TertiaryButton';
type Story = StoryObj<typeof meta>;
const meta = {
title: 'Buttons/TertiaryButton',
component: TertiaryButton,
parameters: {
layout: 'centered',
},
decorators: [Story => <Story />],
tags: ['autodocs'],
argTypes: {
label: {
control: 'text',
description: '버튼에 표시될 텍스트',
defaultValue: 'Button',
},
type: {
control: 'radio',
options: ['button', 'submit'],
description: '버튼 타입',
defaultValue: 'button',
},
color: {
control: 'radio',
options: ['pink', 'black'],
description: '버튼 색상',
defaultValue: 'pink',
},
size: {
control: 'radio',
options: ['small', 'medium', 'large', 'full'],
description: '버튼 크기',
defaultValue: 'large',
},
onClick: {
action: 'clicked',
description: '버튼 클릭 핸들러',
},
},
} satisfies Meta<typeof TertiaryButton>;
export default meta;
export const Default: Story = {
args: {
label: 'Default Button',
type: 'button',
color: 'pink',
size: 'large',
},
};
export const Pink: Story = {
args: {
label: '전송하기',
type: 'button',
color: 'pink',
size: 'large',
},
};
export const Black: Story = {
args: {
label: '로그인',
type: 'button',
color: 'black',
size: 'large',
},
};
export const Small: Story = {
args: {
label: '작은 버튼',
type: 'button',
color: 'pink',
size: 'small',
},
};
export const Medium: Story = {
args: {
label: '중간 버튼',
type: 'button',
color: 'pink',
size: 'medium',
},
};
export const Full: Story = {
args: {
label: '가장 큰 버튼',
type: 'button',
color: 'pink',
size: 'full',
},
};