import type { Meta, StoryObj } from '@storybook/react-vite' import { Button, LinkButton } from './Button' const meta = { title: 'Actions/Button', component: Button, tags: ['autodocs'], parameters: { docs: { description: { component: 'A reusable button with visual variants and size tokens. Use semantic variants rather than ad-hoc colors.', }, }, }, argTypes: { variant: { control: 'select', options: ['primary', 'secondary', 'outline', 'ghost', 'danger'], }, size: { control: 'select', options: ['sm', 'md', 'lg'], }, }, args: { children: 'Continue', variant: 'primary', size: 'md', }, } satisfies Meta export default meta type Story = StoryObj export const Playground: Story = {} export const Variants: Story = { render: () => (
), } export const Sizes: Story = { render: () => (
), } export const Disabled: Story = { args: { disabled: true, children: 'Unavailable', }, } export const AsLink: Story = { parameters: { docs: { description: { story: '`LinkButton` renders an anchor with the same variants and sizes. Use it for navigation so the page keeps real links.', }, }, }, render: () => (
Browse components Read the guide
), }