import { useState } from 'react'; import type { Meta, StoryObj } from 'storybook-react-rsbuild'; import { Info, CheckCircle, Warning, XCircle } from '@phosphor-icons/react'; import { Progress, Spinner, Callout, Badge, Chip, Button } from '../components/ui'; const meta = { title: 'Feedback/Status', component: Progress, parameters: { docs: { description: { component: 'Progress bar, spinner, callouts, badges and chips — the status + signalling family.', }, }, }, } satisfies Meta; export default meta; type Story = StoryObj; function ProgressDemo() { const [v, setV] = useState(40); return (
); } export const ProgressBar: Story = { render: () => }; export const Spinners: Story = { render: () => (
), }; export const Callouts: Story = { render: () => (
}>Sync runs in the background. }>All changes saved. }>Storage is almost full. }>Failed to reach the server.
), }; export const Badges: Story = { render: () => (
Lime Ember Neutral Outline Online
), }; export const Chips: Story = { render: () => (
Design {}}>Removable
), };