import Button from '@/lib/components/Button'; import { appearanceOptions, commonArgTypes, radiusOptions, scalingOptions, sizeOptions, weightOptions } from '@/lib/constants'; import type { Meta } from '@storybook/vue3'; const meta = { title: 'Basic Component/Button', component: Button, parameters: { layout: 'centered', themes: { themeOverride: 'dark' }, docs: { description: { component: '어떤 기능이나 동작을 실행하거나 기능을 사용하기 위한 상태로 변경하는 요소' } } }, argTypes: { radius: { ...commonArgTypes.radius, description: '버튼 둥글기' }, scaling: { ...commonArgTypes.scaling, description: '버튼 비율' }, size: { ...commonArgTypes.size, description: '버튼 크기' }, weight: { ...commonArgTypes.weight, description: '버튼 폰트 두께' }, onClick: { table: { category: 'EVENT HANDLER' } }, color: { ...commonArgTypes.color, description: 'Button 메인 색' }, appearance: { ...commonArgTypes.appearance, description: 'Button 스타일', options: appearanceOptions }, disabled: { description: '버튼 disabled 기본 속성', defaultValue: { summary: 'false' }, table: { category: 'Props', type: { summary: 'boolean' } }, control: { type: 'boolean' } } }, args: { // onClick: fn() } } as Meta; export default meta; export const Default = { render: (args: any) => ({ components: { Button }, setup() { return { args }; }, template: `` }) }; export const Radius = { render: (args: any) => ({ components: { Button }, setup() { return { args, radiusOptions }; }, template: `