import type { Meta, StoryObj } from "@storybook/react"; import { StatusBadge } from "@shared/components/StatusBadge"; const meta: Meta = { title: "Primitives/StatusBadge", component: StatusBadge, parameters: { layout: "centered" }, args: { children: "Healthy", tone: "success" }, argTypes: { tone: { control: "inline-radio", options: ["neutral", "success", "warning", "danger", "info", "purple"], }, size: { control: "inline-radio", options: ["sm", "md", "lg"] }, }, }; export default meta; type Story = StoryObj; export const Default: Story = {}; export const AllTones: Story = { render: () => (
Processed Needs review Escalated In review Resolved Paused
), }; export const Live: Story = { args: { tone: "success", pulse: true, children: "Live" }, }; export const Sizes: Story = { render: () => (
Small Medium Large
), };