import { Tag } from './Tag' import type { Meta } from '@storybook/react' import { Box } from '../Box/Box' import { IconSolidCheveronDown, IconSolidSave } from '../icons' export default { title: 'Components/Tag', component: Tag, } as Meta export const TagVariants = () => { const emphasis = ['high', 'medium', 'low'] as const const kind = ['primary', 'secondary'] as const const shape = ['basic', 'rounded'] as const const size = ['small', 'medium', 'large'] as const return ( {kind.map(($kind, idx) => ( {emphasis.map(($emphasis, jdx) => ( {size.map(($size, kdx) => ( {shape.map(($shape, sdx) => ( ) : ( <> ) } iconRight={ jdx % emphasis.length === 0 ? ( ) : ( <> ) } size={$size} kind={$kind} emphasis={$emphasis} key={`b-${idx}-${jdx}-${kdx}-${sdx}`} > k:{$kind}|e:{$emphasis}|s:{$size}|s: {$shape} ))} ) : ( <> ) } disabled > {$emphasis}|{$kind}|{$size}|disabled ))} ))} ))} ) }