LifeDS

Component

Slider

An input where the user selects a value from within a given range.

SliderdefaultValue · value/onValueChange · min · max · step
orientationhorizontal (default) · vertical
Playground

Basic

single value — defaultValue={[75]}

Range — two thumbs

defaultValue={[25, 50]} step={5}

Multiple thumbs

defaultValue={[10, 20, 70]} step={10}

Vertical orientation

Controlled

0.5

Disabled

non-interactive

RTL support

Tokens used

5 semantic tokens consumed by this component.

--primaryPrimary
bg-primarytext-primaryborder-primaryring-primary
--mutedMuted
bg-mutedtext-mutedborder-muted
--backgroundBackground
bg-background
--ringRing
ring-ringring
--borderBorder
border-borderborder