Slider
COMPONENT

CONTROLS / SLIDER

Slider

Native macOS continuous or stepped slider control for adjusting brightness, audio levels, goals, or numeric parameters directly on the desktop.

Signature#

SIGNATURE
<Slider
  value={brightness}
  min={0}
  max={100}
  step={5}
  color="theme.accent"
  onChange={setBrightness}
/>
step={5} · 0–100
Interactive
75%

Props#

Inherits StyleProps:

valuenumberRequired
Current numeric slider value.
minnumberDefault 0
Lower bound.
maxnumberDefault 100
Upper bound.
stepnumberOptional
Optional discrete increment (e.g. 1, 5, 0.1); smooth continuous drag when omitted.
colorstringDefault "theme.accent"
Active track accent color.
onChangefunctionOptional
Callback (next: number) => void fired continuously while dragging.

Example: Brightness & Warmth Sliders#

TSX
<VStack spacing={12}>
  <Slider value={brightness}
    min={10} max={100} step={5}
    color="theme.accent"
    onChange={setBrightness} />
  <Slider value={warmth}
    min={2700} max={6500} step={100}
    color="theme.warning"
    onChange={setWarmth} />
</VStack>
Brightness & Warmth
Interactive
75%
4200 K