Badge
The <Badge> component renders inline labels for marking features, API endpoints, or documentation sections. Supports four semantic variants and arbitrary custom colors.
Variants
Code
Output
- Info — informational
- Success — completed or stable
- Warning — heads up
- Error — critical or breaking
Custom colors
Use the color prop with any hex value to create custom badges. The background is automatically tinted at 12% opacity.
Code
Output
- Beta
- New
- Deprecated
Inline with headings
Props
BadgeVariant
'info' | 'success' | 'warning' | 'error'