Skip to Content
Forms & Inputs@hacline/ui/slider

Slider

Adjust single numeric values or ranges with one or more thumbs.

Usage

Drag either endpoint of the range or step incrementally with arrow keys. Each SliderThumb binds to a value by index and exposes its own accessible label.

20 – 75

Vertical Single Value & Percentage

Represent notification volume from 0 to 1 while formatting the readout as a percentage via format.

50%

Parts

PartDescription
SliderControl
Where presses land. A press on the track moves the nearest thumb there.
SliderIndicator
The filled part of the track: up to a single thumb, or between a range's thumbs.
SliderThumb
A thumb, with the native range input that takes focus inside it. Its aria-label, aria-labelledby and aria-describedby go to that input.
SliderTrack
The rail the thumbs move along. Positions are percentages of it.
SliderValue
The formatted value, a range joined with an en dash. Children replace it.

Props

Prop

Type

View UI SDK parts and state attributes.