import { Badge } from "@ai-ui/ui"; import type { Meta, StoryObj } from "@storybook/react"; const meta = { title: "Components/Badge", component: Badge, args: { children: "Stable", size: "md", tone: "neutral", variant: "subtle" }, argTypes: { asChild: { control: "boolean" }, children: { control: "text" }, className: { control: false }, size: { control: "radio", options: ["sm", "md"] }, tone: { control: "select", options: ["neutral", "primary", "success", "warning", "destructive"] }, variant: { control: "radio", options: ["subtle", "solid", "outline"] } }, parameters: { layout: "centered" }, tags: ["autodocs"] } satisfies Meta; export default meta; type Story = StoryObj; export const Playground: Story = {}; export const Matrix: Story = { render: () => (
Neutral Primary Success Warning Destructive
Outline Brand Shipped Needs review
) };