Components · Slider
Slider
Single- or multi-thumb numeric range input.
Anatomy
- 1
.slider-rootSlider layout and state boundary. - 2
.slider-labelAccessible slider label. - 3
.slider-controlInteractive track and thumb region. - 4
.slider-trackFull available range. - 5
.slider-rangeSelected portion of the track. - 6
.slider-thumbDraggable current-value handle. - 7
.slider-value-textFormatted current value. - 8
.slider-marker-groupScale-mark layout container. - 9
.slider-markerOptional labeled or unlabeled scale mark.
Variants
- Continuous
- Discrete
Default
Compositions
The component in context, beside others. Open the code to see the file verbatim.
When to use
Use a slider when choosing an approximate value from a range is faster than entering an exact number.
Interaction states →