Skip to content
Components

Checkbox

Single checkbox control with checked and indeterminate states.

Composition

Choice control

  • <Checkbox />

Installation

The Control UI source installs this primitive from src/registry/sources/control-ui/ui/checkbox.tsx.

Registry command
See registry manifest

Raw code

Primary installed source

src/registry/sources/control-ui/ui/checkbox.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-choice-* · 7 knobsHow the cascade resolves
--cui-choice-radius<length-percentage>var(--radius-sm)
--cui-choice-border-color<color>var(--control-boundary)
--cui-choice-border-width<length>var(--control-rim-width)
--cui-choice-background<color>var(--control-fill)
--cui-choice-checked-background<color>var(--primary)
--cui-choice-checked-border-color<color>var(--primary)
--cui-choice-shadow*inset 0 0 0 var(--cui-choice-border-width) var(--cui-choice-border-color), var(--shadow-sm)