import type { ComponentMeta, ComponentStory } from '@storybook/react'; import { Link } from '../../../atoms'; import { MetaItem } from './meta-item'; /** * MetaItem - Storybook Meta */ export default { title: 'Molecules/MetaList/Item', component: MetaItem, argTypes: { label: { control: { type: 'text', }, description: 'The item label.', type: { name: 'string', required: true, }, }, }, } as ComponentMeta; const Template: ComponentStory = (args) => ( ); /** * MetaItem Stories - SingleValue */ export const SingleValue = Template.bind({}); SingleValue.args = { label: 'Comments', value: 'No comments', }; /** * MetaItem Stories - MultipleValues */ export const MultipleValues = Template.bind({}); MultipleValues.args = { label: 'Tags', value: [ { id: 'tag1', value: Tag 1 }, { id: 'tag2', value: Tag 2 }, ], }; /** * MetaItem Stories - SingleValueBordered */ export const SingleValueBordered = Template.bind({}); SingleValueBordered.args = { hasBorderedValues: true, label: 'Comments', value: 'No comments', }; /** * MetaItem Stories - MultipleValuesBordered */ export const MultipleValuesBordered = Template.bind({}); MultipleValuesBordered.args = { hasBorderedValues: true, label: 'Tags', value: [ { id: 'tag1', value: Tag 1 }, { id: 'tag2', value: Tag 2 }, ], }; /** * MetaItem Stories - SingleValueInlined */ export const SingleValueInlined = Template.bind({}); SingleValueInlined.args = { isInline: true, label: 'Comments', value: 'No comments', }; /** * MetaItem Stories - MultipleValuesInlined */ export const MultipleValuesInlined = Template.bind({}); MultipleValuesInlined.args = { isInline: true, label: 'Tags', value: [ { id: 'tag1', value: Tag 1 }, { id: 'tag2', value: Tag 2 }, ], }; /** * MetaItem Stories - InlinedValues */ export const InlinedValues = Template.bind({}); InlinedValues.args = { hasInlinedValues: true, label: 'Tags', value: [ { id: 'tag1', value: Tag 1 }, { id: 'tag2', value: A long tag 2 }, { id: 'tag3', value: Tag 3 }, ], };