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