Badge
A compact label component for categorization, status, and metadata display.View source →This component's API and documentation are under review and may change. Use with caution in production.
Badge is a small, inline element used to display labels, statuses, counts, or categories. It supports multiple variants, colors, and can include tooltips for additional context.
This is an enhanced version of the Badge from Radix Themes.
Playground
Installation
shellUsage
tsxProps
Variants
Solid
Bold, filled background for high emphasis.
tsxSoft
The default variant with a subtle tinted background.
tsxSurface
Elevated appearance with subtle background.
tsxOutline
Bordered with transparent background.
tsxGhost
Minimal styling, no background or border.
tsxClassic
A refined, subtle appearance.
tsxColors
Badges support all accent colors for semantic meaning.
tsxSizes
Control badge size with the size prop.
tsxHigh Contrast
Use highContrast for better visibility on complex backgrounds.
tsxWith Tooltip
Add tooltips to provide additional context.
tsxStatus Indicators
Common pattern for displaying status with badges.
tsx