Badge
Displays a badge or a component that looks like a badge.
badge
Installation
Options
Variant
Use the variant prop to control the visual style of the badge.
The default variant is "default".
default
gray
blue
orange
tag
Size
Use the size prop to control the text size of the badge.
The default size is "md".
badge
badge
API Reference
Badge
An Badge extends the HTML <div> component. We list the extended properties only.
| Prop | Type | Default | Description |
|---|---|---|---|
variant | "default" | "gray" | "blue | "orange" | "tag" | null | "default" | The visual style of the badge. |
size | "sm" | "md" | "md" | The size of the badge. |