import type { Meta, StoryObj } from '@storybook/react'; import { Link } from '../../atoms'; import { MetaItem } from './meta-item'; import { MetaList } from './meta-list'; const meta = { component: MetaList, title: 'Molecules/MetaList', } satisfies Meta; export default meta; type Story = StoryObj; const items = [ { id: 'comments', label: 'Comments', value: 'No comments.' }, { id: 'category', label: 'Category', value: Cat 1, }, { id: 'tags', label: 'Tags', value: [ { id: 'tag1', value: Tag 1 }, { id: 'tag2', value: Tag 2 }, ], }, { hasBorderedValues: true, hasInlinedValues: true, id: 'technologies', label: 'Technologies', value: [ { id: 'techno1', value: 'HTML' }, { id: 'techno2', value: 'CSS' }, { id: 'techno3', value: 'Javascript' }, ], }, ]; export const Example: Story = { args: { children: items.map(({ id, ...item }) => ), }, }; export const Inlined: Story = { args: { children: items.map(({ id, ...item }) => ), isInline: true, }, };