Slider
Select one value or a range by sliding. Dragging past either end stretches the track like rubber, and marks act as detents.
Examples
Marks as detents
Marks are soft snaps: a dragged thumb holds on each one for about seven pixels and the tick pops, with a short vibration where the device supports it. They never block the values in between. Labelled marks print under the track and can be pressed. onValueCommitted fires when you release, press a key or press a label.
Release the thumb to commit.
When to use Slider
Use when
Use Slider for one continuous value where feel matters, like volume, brightness, zoom or playback speed, or for a range with two thumbs. Use marks for common targets.
Avoid when
Avoid it for exact numeric entry, where an Input fits, and for a handful of discrete choices, where Radiobox or Tabs fit.
Accessibility
Each thumb is a native range input, so it is a slider with its value, minimum and maximum. Pass label to name it (a range numbers its thumbs) and formatValue to give aria-valuetext a unit. Arrows move one step, Shift+Arrow, PageUp and PageDown move by largeStep, Home and End jump to the limits, and at a limit the track stretches toward the key and snaps back. Icons, the value tag and mark labels are hidden from assistive technology.