Badge
Displays a badge or a component that looks like a badge.
Preview
BadgeSecondaryOutlineDestructive
Installation
Use the CLI to add this component to your project.
Usage
tsx
5 linesCopy
Variants
Default
Default
Secondary
Secondary
Outline
Outline
Destructive
Destructive
Custom Colors
SuccessWarningInfoNew
Props
| Prop | Type | Default | Description |
|---|---|---|---|
variant | "default" | "secondary" | "outline" | "destructive" | default | The visual style of the badge |
className | string | Additional CSS classes |