|
| 1 | +import { IcArrowRight, IcClose } from '@/assets/IconList' |
| 2 | +import { fn } from '@storybook/test' |
| 3 | + |
| 4 | +import { Clickable } from '@/components/common/button/Clickable' |
| 5 | + |
| 6 | +export default { |
| 7 | + title: 'Common/Button/Clickable', |
| 8 | + component: Clickable, |
| 9 | + parameters: { |
| 10 | + layout: 'centered', |
| 11 | + }, |
| 12 | + tags: ['common', 'button'], |
| 13 | + argTypes: { |
| 14 | + label: { control: 'text', description: '문자열만 받습니다.' }, |
| 15 | + variant: { |
| 16 | + control: 'radio', |
| 17 | + options: ['contained', 'outlined', 'text'], |
| 18 | + description: '디폴트로 contained', |
| 19 | + }, |
| 20 | + size: { |
| 21 | + control: 'radio', |
| 22 | + options: ['sm', 'md', 'lg', 'xl'], |
| 23 | + description: '순서대로 height 40 44 48 52', |
| 24 | + }, |
| 25 | + borderColor: { |
| 26 | + control: 'radio', |
| 27 | + options: ['gray', 'blue'], |
| 28 | + description: 'outlined 일 때만 적용', |
| 29 | + }, |
| 30 | + backgroundColor: { |
| 31 | + control: 'radio', |
| 32 | + options: ['gray', 'blue', 'white', 'transparentBlue'], |
| 33 | + description: 'variant 로 스타일 안되는 경우 추가', |
| 34 | + }, |
| 35 | + textColor: { |
| 36 | + control: 'radio', |
| 37 | + options: ['black', 'blue', 'white', 'gray400', 'gray500', 'gray600'], |
| 38 | + description: 'variant 로 스타일 안되는 경우 추가', |
| 39 | + }, |
| 40 | + fullWidth: { control: 'boolean' }, |
| 41 | + disabled: { control: 'boolean' }, |
| 42 | + }, |
| 43 | + args: { |
| 44 | + onClick: fn(), |
| 45 | + }, |
| 46 | +} |
| 47 | + |
| 48 | +export const Default = { |
| 49 | + args: { |
| 50 | + label: '기본 버튼', |
| 51 | + }, |
| 52 | +} |
0 commit comments