import { ComponentMeta } from '@storybook/react'; import { Badge, BadgeVariant } from '@tih/ui'; import React from 'react'; const badgeVariants: ReadonlyArray = [ 'primary', 'info', 'danger', 'success', 'warning', ]; export default { title: 'Badge', component: Badge, argTypes: { variant: { options: badgeVariants, control: { type: 'select' }, }, }, } as ComponentMeta; export const Basic = { args: { label: 'Hello', variant: 'primary', }, }; export function Variants() { return (
); }