Components
Badge
Compact status, label, or count chip.
Composition
Status or label
- <Badge />
Installation
The Control UI source installs this primitive from src/registry/sources/control-ui/ui/badge.tsx.
Dependencies
Theme tokens
src/registry/sources/control-ui/theme.cssSupportRaw code
Primary installed source
Knobs
Typed custom properties the recipe paints with. Set one on the root — style, a utility class, or a skin — and every slot inherits it.
--cui-badge-* · 5 knobsHow the cascade resolves--cui-badge-radius<length-percentage>var(--radius-control)--cui-badge-background<color>var(--_badge-color-background)--cui-badge-foreground<color>var(--_badge-color-foreground)--cui-badge-border-color<color>transparent--cui-badge-font-size<length-percentage>var(--text-caption)