Skip to content
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.

Registry command
See registry manifest

Dependencies

Theme tokenssrc/registry/sources/control-ui/theme.cssSupport

Raw code

Primary installed source

src/registry/sources/control-ui/ui/badge.tsx

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)