import type { Meta, StoryObj } from '@storybook/react' import { Bold, Italic, Underline } from 'lucide-react' import { Toggle } from '@/components/ui/toggle' const meta = { title: 'Primitives/Toggle', component: Toggle, tags: ['autodocs'], parameters: { layout: 'centered' }, argTypes: { variant: { control: 'select', options: ['default', 'outline'], }, size: { control: 'select', options: ['default', 'sm', 'lg'], }, disabled: { control: 'boolean' }, }, } satisfies Meta export default meta type Story = StoryObj export const Default: Story = { args: { children: , 'aria-label': 'Toggle bold', }, } export const Outline: Story = { args: { variant: 'outline', children: , 'aria-label': 'Toggle italic', }, } export const Small: Story = { args: { size: 'sm', children: , 'aria-label': 'Toggle bold', }, } export const Large: Story = { args: { size: 'lg', children: , 'aria-label': 'Toggle bold', }, } export const WithText: Story = { args: { children: ( <> Italic ), 'aria-label': 'Toggle italic', }, } export const Disabled: Story = { args: { disabled: true, children: , 'aria-label': 'Toggle bold', }, } export const Pressed: Story = { args: { defaultPressed: true, children: , 'aria-label': 'Toggle bold', }, } export const AllVariants: Story = { render: () => (
default
outline
), }