Badge
A small label component used to display status, categories, or counts with various styles and colors.
Installation
npx chilli@latest add badgeDefault
Label
Label
Sizes
Small
Medium
Large
API Reference
Badge
| Prop | Type | Default | Description |
|---|---|---|---|
variant | "default" | "secondary" | "success" | "warning" | "danger" | "default" | The visual style variant of the badge. |
size | "sm" | "md" | "lg" | "md" | The size of the badge. |
children | ReactNode | — | The content of the badge. |
className | string | — | Additional CSS classes. |