All components

INPUTS / COMPONENTS

Slider

Adjust a value within a known range.

Live component8 documented props

About slider

Sliders allow users to select a value from a continuous range by dragging a handle along a track. Sliders are commonly used for tasks like setting volume, adjusting brightness, choosing a value within a range, or selecting a point on a spectrum.

01

Anatomy

Shared parts, named consistently.

  1. 1
    2TrackRequired

    Track that the thumb moves along

  2. 2
    2Label

    The label of the Slider

  3. 3
    2Value label

    The current value or value range of the Slider

  4. 4
    2Min label

    A label to indicate the minimum value to select

  5. 5
    2ThumbRequired

    Interactive control that can be grabbed and moved along the track

  6. 6
    2IndicatorRequired

    Highlights the position of the active thumb along the track

  7. 7
    2Max label

    A label to indicate the minimum value to select

Try the default

A working example with the shared V1 visual language.

Layer opacity40%

When to use

Use for bounded values where relative position matters. Show the current value and meaningful units.

Arrow keys change by step. Home/End select limits. Page Up/Down make larger changes.

Related components

Source & adaptation

V1 semantic colors, DM Sans typography, compact controls, and responsive layouts. The API table describes this implementation; source design notes may use earlier API terminology.

components/library/inputs.tsx