Skip to content
Components

Radio group

Single-choice radio set for plans, filters, and option lists.

Composition

Anatomy

  • <RadioGroup>
    • <RadioGroupItem>
      • <Radio />
      </RadioGroupItem>
    </RadioGroup>

Installation

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

Registry command
See registry manifest

Raw code

Primary installed source

src/registry/sources/control-ui/ui/radio-group.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)