import type { ComponentMeta, ComponentStory } from '@storybook/react'; import { Link } from '../../atoms'; import { type MetaItemData, MetaList } from './meta-list'; /** * MetaList - Storybook Meta */ export default { title: 'Molecules/MetaList', component: MetaList, argTypes: { items: { description: 'The meta items.', type: { name: 'object', required: true, value: {}, }, }, }, } as ComponentMeta; const Template: ComponentStory = (args) => ( ); const items: MetaItemData[] = [ { 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' }, ], }, ]; /** * MetaList Stories - Default */ export const Default = Template.bind({}); Default.args = { items, }; /** * MetaList Stories - Inlined */ export const Inlined = Template.bind({}); Inlined.args = { isInline: true, items, }; 3b913b90cef9dfbe4288e148d589d033'>refslogtreecommitdiffstats
blob: b6087849c9b982c86a5bc968719a93708902b6b0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22