import type { Meta, StoryObj } from '@storybook/react'; import { Button } from '@workspace/ui/components/button'; const meta = { title: 'Components/Button', component: Button, parameters: { layout: 'centered', }, tags: ['autodocs'], argTypes: { variant: { control: 'select', options: ['default', 'destructive', 'outline', 'secondary', 'ghost', 'link'], }, size: { control: 'select', options: ['default', 'sm', 'lg', 'icon', 'icon-sm', 'icon-lg'], }, }, } satisfies Meta; export default meta; type Story = StoryObj; export const Default: Story = { args: { children: 'Button', variant: 'default', }, }; export const Destructive: Story = { args: { children: 'Delete', variant: 'destructive', }, }; export const Outline: Story = { args: { children: 'Outline', variant: 'outline', }, }; export const Secondary: Story = { args: { children: 'Secondary', variant: 'secondary', }, }; export const Ghost: Story = { args: { children: 'Ghost', variant: 'ghost', }, }; export const Link: Story = { args: { children: 'Link', variant: 'link', }, }; export const Small: Story = { args: { children: 'Small', size: 'sm', }, }; export const Large: Story = { args: { children: 'Large', size: 'lg', }, }; export const Disabled: Story = { args: { children: 'Disabled', disabled: true, }, };