import type { Meta, StoryObj } from 'storybook-react-rsbuild'; import { Gear, Plus, Trash } from '@phosphor-icons/react'; import { IconButton } from '../components/ui'; const meta = { title: 'Inputs/IconButton', component: IconButton, parameters: { docs: { description: { component: 'Square button for a single icon. Shares the Button variants; sizes are `sm` / default / `lg`.', }, }, }, argTypes: { variant: { control: 'inline-radio', options: ['key', 'primary', 'ember', 'ghost'], description: 'Visual emphasis. `key` is the default neutral button.', }, size: { control: 'inline-radio', options: ['sm', undefined, 'lg'], description: 'Button size: `sm` compact, default regular, `lg` large.', }, disabled: { control: 'boolean' }, }, } satisfies Meta; export default meta; type Story = StoryObj; export const Playground: Story = { args: { variant: 'key', children: }, }; export const Variants: Story = { render: () => (
), }; export const Sizes: Story = { render: () => (
), };