import type { Meta, StoryObj } from '@storybook/react' import { SvgAdd1 } from '@chainlink/blocks-icons' import { BUTTON_ICON_SIZE_OPTIONS, BUTTON_ICON_VARIANT_OPTIONS, ButtonIcon, } from './ButtonIcon' const meta = { title: 'Blocks/ButtonIcon', component: ButtonIcon, args: { asChild: false, size: undefined, variant: undefined, }, argTypes: { asChild: { control: 'boolean', description: 'Render as a child component using Radix Slot.', }, size: { control: { type: 'select', }, options: BUTTON_ICON_SIZE_OPTIONS, table: { type: { summary: BUTTON_ICON_SIZE_OPTIONS.map((value) => value).join(' | '), }, defaultValue: { summary: 'default' }, }, }, variant: { control: { type: 'select', }, options: BUTTON_ICON_VARIANT_OPTIONS, table: { type: { summary: BUTTON_ICON_VARIANT_OPTIONS.map((value) => value).join( ' | ', ), }, defaultValue: { summary: 'default' }, }, }, onClick: { action: 'clicked' }, }, } satisfies Meta export default meta type Story = StoryObj export const Default: Story = { render: (args) => ( ), } export const DefaultVariant: Story = { name: 'Default Variant', render: (args) => (
default
sm
xs
), args: { variant: undefined, }, } export const GhostVariant: Story = { name: 'Ghost Variant', render: (args) => (
default
sm
xs
), args: { variant: 'ghost', }, }