Badge
Data DisplayA compact status or count label in solid tonal colors.
Live preview
NeutralPrimarySuccessWarningDangerInfoSolidOutline
Installation
Import the component from the kit. The package ships source and is transpiled by Next.js.
Usage
Compose the component with your own content. All controls share the same focus, disabled and invalid states.
API Reference
Props are additive to the underlying Base UI or native element.
| Prop | Type | Default | Description |
|---|---|---|---|
| variant | "neutral" | "primary" | "success" | "warning" | "danger" | "info" | "solid" | "outline" | "neutral" | Tone of the badge. |