import type { Meta, StoryObj } from '@storybook/react' import { Tag } from './Tag' const meta: Meta = { title: 'Blocks/Tag', component: Tag, argTypes: { variant: { control: 'select', options: ['default', 'progress', 'success', 'warning', 'urgent', 'muted'], description: 'The visual style of the tag.', }, size: { control: 'radio', options: ['default', 'sm'], description: 'The size of the tag.', }, hideIcon: { control: 'boolean', description: 'Whether to hide the icon.', }, children: { control: 'text', description: 'The content of the tag.', }, }, } export default meta type Story = StoryObj export const Default: Story = { args: { children: 'Default', variant: 'default', size: 'default', hideIcon: false, }, } export const AllVariants: Story = { render: (_args) => (
Default In Progress Success Warning Urgent Muted
Default In Progress Success Warning Urgent Muted
), } export const WithoutIcon: Story = { args: { children: 'No Icon', variant: 'default', size: 'default', hideIcon: true, }, }