ComponentsSlider

Slider

Adjust a numeric setting with an accessible slider and visible value.

Example
Playback volume

Set the default volume for media previews.

Setup

Download the shared Inlay assets once. Then choose HTML, React, or Vue and copy the example above.

Range slider

Set a lower and an upper value on the same track.

Example
Estimate range

Adjust the minimum and maximum estimated hours.

Disabled slider

Show a readout for a setting managed elsewhere.

Example
Playback volume

Playback volume is managed by the device.

Usage

SemanticsUse native range inputs so Arrow, Home, and End keys adjust the value. Each thumb in a range has a distinct accessible name.
BoundsThe two thumbs stay in order. A change to either value updates the track and visible readout.