import type { Meta, StoryObj } from "@storybook/react"; import { Badge } from "~/components/ui/badge"; const meta: Meta = { title: "UI / Feedback / Badge", component: Badge, tags: ["autodocs"], argTypes: { variant: { control: { type: "inline-radio" }, options: ["default", "secondary", "destructive", "outline"], }, }, args: { variant: "default", children: "New" }, }; export default meta; type Story = StoryObj; export const Default: Story = {}; export const AllVariants: Story = { render: () => (
Default Secondary Failed Draft
), }; export const SemanticColors: Story = { render: () => (
Active Pending Failed Info Draft
), }; export const InText: Story = { render: () => (

Workspace status: healthy. Latest deploy passed all gates.

), };