Slider

DarkInspect

Two controls: ScrubSlider for a single value, Slider for a range. ScrubSlider is React Bits' scrubber (its docs' Customize panel) on Base UI's Slider: the whole row is the control, its label inside at the start and its value at the end, the part up to the value filled, ticks along it and a thin capsule at the fill's edge that wakes while pointed at or held. Press anywhere to jump there, drag to scrub; on a phone it waits until a touch moves across before it takes it, so a panel of rows still scrolls. Slider is Base UI's too, with the pill track and white knob, because a range needs two thumbs.

Marks

Marks are the values people aim for, drawn as the ticks; the slider reads a mark's label out when it sits on one. Without marks it draws nine even ticks.

DarkInspect

Range

Two thumbs on Slider, its readout written by the caller. minStepsBetweenValues keeps the thumbs from meeting.

DarkInspect

On this page