Badge
A compact label component for categorization, status, and metadata display.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
Usage
Props
Variants
Solid
Bold, filled background for high emphasis.
Soft
The default variant with a subtle tinted background.
Surface
Elevated appearance with subtle background.
Outline
Bordered with transparent background.
Ghost
Minimal styling, no background or border.
Classic
A refined, subtle appearance.
Colors
Badges support all accent colors for semantic meaning.
Strong Ink
Badge text always reads the strong ink for its color. Gray badges with a solid fill use step 12, so no extra prop is needed.
Sizes
Control badge size with the size prop.
With Tooltip
Add tooltips to provide additional context.
Status Indicators
Common pattern for displaying status with badges.
© 2026 Kushagra Dhawan. Licensed under MIT. GitHub.