import { Meta, StoryFn } from '@storybook/react-webpack5'; import { StatusDot } from './StatusDot'; import type { StatusDotColor, StatusDotSize } from './StatusDot'; export default { component: StatusDot, title: 'Design System/Primitives/StatusDot', } as Meta; const colors: StatusDotColor[] = ['success', 'warn', 'danger', 'muted', 'info']; const sizes: StatusDotSize[] = ['xs', 'sm', 'md']; export const AllColors: StoryFn = () => (
{colors.map((color) => (
{color}
))}
); export const AllSizes: StoryFn = () => (
{sizes.map((size) => (
{size}
))}
); export const Pulse: StoryFn = () => (
{colors.map((color) => ( ))}
);