Badge
Small status labels for counts, categories, and inline metadata — with variants, icons, and link composition.
Default
A simple status label.
Installation
CLI
Usage
badge.tsx
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| variant | "default" · "secondary" · "destructive" · "outline" · "ghost" · "link" | "default" | Visual style of the badge. |
| asChild | boolean | false | Render as the child element (e.g. an anchor) instead of a span. |