import React from 'react'; import { CheckCircleIcon, ExclamationCircleIcon, ExclamationTriangleIcon, InformationCircleIcon, StarIcon, } from '@heroicons/react/20/solid'; 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 (
); } export function Icon() { return (
); }