import React from 'react'; import { Tag, TagGroup } from './TagGroup'; import type { Meta, StoryObj } from '@storybook/react-vite'; const meta = { title: 'Basic/TagGroup', component: TagGroup, parameters: { layout: 'centered', }, tags: ['autodocs'], } satisfies Meta; export default meta; type Story = StoryObj; export const Default: Story = { render: (args: any) => ( Chocolate Mint Strawberry Vanilla ), args: { label: 'Ice cream flavor', selectionMode: 'single', }, }; const items = [ { id: 'Chocolate', name: 'Chocolate' }, { id: 'Mint', name: 'Mint' }, { id: 'Strawberry', name: 'Strawberry' }, { id: 'Vanilla', name: 'Vanilla' }, ]; export const ItemsAsList: Story = { render: (args: any) => ( {(item: (typeof items)[number]) => {item.name}} ), args: { label: 'Ice cream flavor', selectionMode: 'single', }, };