-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSecondaryButton.stories.tsx
More file actions
87 lines (78 loc) · 1.61 KB
/
SecondaryButton.stories.tsx
File metadata and controls
87 lines (78 loc) · 1.61 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
import type { Meta, StoryObj } from '@storybook/react';
import SecondaryButton from '../../ui/buttons/SecondaryButton';
type Story = StoryObj<typeof meta>;
const meta = {
title: 'Buttons/SecondaryButton',
component: SecondaryButton,
parameters: {
layout: 'centered',
},
decorators: [Story => <Story />],
tags: ['autodocs'],
argTypes: {
label: {
control: 'text',
description: '버튼에 표시될 텍스트',
defaultValue: 'Button',
},
color: {
control: 'radio',
options: ['pink', 'black'],
description: '버튼 색상',
defaultValue: 'pink',
},
size: {
control: 'radio',
options: ['full', 'large', 'small'],
description: '버튼 크기',
defaultValue: 'large',
},
onClick: {
action: 'clicked',
description: '버튼 클릭 핸들러',
},
},
} satisfies Meta<typeof SecondaryButton>;
export default meta;
export const Default: Story = {
args: {
label: 'Default Button',
color: 'pink',
size: 'large',
},
};
export const FullPink: Story = {
args: {
label: 'Full Button',
color: 'pink',
size: 'full',
},
};
export const SmallPink: Story = {
args: {
label: '작은 버튼',
color: 'pink',
size: 'small',
},
};
export const BigBlack: Story = {
args: {
label: '큰 버튼',
color: 'black',
size: 'large',
},
};
export const FullBlack: Story = {
args: {
label: 'Full Button',
color: 'black',
size: 'full',
},
};
export const SmallBlack: Story = {
args: {
label: '작은 검은 버튼',
color: 'black',
size: 'small',
},
};