Installation
Usage
Component Code
Examples
- Default
- Secondary
- Destructive
- Outline
- With Icon
The default badge variant.
Variants
The Badge component supports the following variants:default- Primary badge stylesecondary- Secondary, less prominent styledestructive- For errors or warningsoutline- Outlined badge with transparent backgroundghost- Minimal styling, visible on hoverlink- Styled as a link with underline on hover
API Reference
Badge
| Prop | Type | Default |
|---|---|---|
variant | "default" | "secondary" | "destructive" | "outline" | "ghost" | "link" | "default" |
asChild | boolean | false |
className | string | - |