- Components
- Data display
Badge
Small pill label. overlay sits on top of media; neutral, outline and primary are for chrome and status.
Installation#
npx shadcn add @ortaui/badgeExamples#
Variants#
neutraloutlineprimary
With icon and as a link#
InfoLink
API reference#
| Prop | Type | Default | Description |
|---|---|---|---|
| surface | "default" | "raised" | auto | Look on a panel. Unset: raised (page fill + border) inside any [data-surface] container. "raised" forces it anywhere; "default" keeps the muted fill even inside a surface. |
| variant | "neutral" | "outline" | "primary" | "overlay" | "neutral" | Visual style. |
| render | ReactElement | - | Render as another element, e.g. a link. |