# Badge

A compact, bordered label for metadata and status.

- Family: Foundation, imported from `mizu-ui` or `mizu-ui/ui`
- Docs: https://mizu.user64bit.world/components/badge
- Source: https://github.com/0xuser64bit/mizu/blob/main/packages/mizu/src/ui/Badge.tsx

## Usage

```tsx
import { Badge } from "mizu-ui";

export function Example() {
  return (
    <div style={{ display: "flex", gap: 12, flexWrap: "wrap" }}>
      <Badge tone="accent">New</Badge>
      <Badge tone="paper">Stable</Badge>
      <Badge>Draft</Badge>
    </div>
  );
}
```

## Copy it with the shadcn CLI

```sh
npx shadcn@latest init 0xuser64bit/mizu/preset # once, where there is no components.json
npx shadcn@latest add 0xuser64bit/mizu/badge
```

## Props

- `tone`: `"paper" | "muted" | "accent" | "line"` (default `"muted"`). Label treatment.
- `diamond`: `boolean` (default `true`). Show the decorative marker.

## Accessibility

State remains visible text. Add a live region only when the status changes dynamically.

## Motion

Static text.
