Components
Slider
Single-value range control with branded and plain treatments.
Composition
Value control
- <Slider />
Installation
The Control UI source installs this primitive from src/registry/sources/control-ui/ui/slider.tsx.
Raw 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-range-* · 13 knobsHow the cascade resolves--cui-range-level-warning-background<color>var(--warning)--cui-range-level-clip-background<color>var(--destructive)--cui-range-level-size<length-percentage>calc(var(--spacing) * 2)--cui-range-level-scale-foreground<color>var(--muted-foreground)--cui-range-indeterminate-size<length-percentage>40%--cui-range-track-radius<length-percentage>9999px--cui-range-track-background<color>var(--muted)--cui-range-indicator-radius<length-percentage>9999px--cui-range-indicator-background<color>var(--primary)--cui-range-thumb-radius<length-percentage>9999px--cui-range-thumb-background<color>var(--background)--cui-range-thumb-border-color<color>var(--control-rim)--cui-range-thumb-shadow*var(--shadow-sm)