Slider
@rockshin/tao-uiSelects a numeric value or range using pointer and keyboard input.
When to use
Use when approximate adjustment is more useful than typing. Show the current value and units next to the slider.
Examples
Controlled value and completion
onChange follows each movement; onChangeComplete reports the final pointer or keyboard interaction.
Range and draggable track
Drag either handle to resize the range or drag the selected track to move both endpoints.
Marks and discrete values
step= restricts selection to marks. dots shows all valid step positions.
Tooltip formatting
Set formatter to null to suppress the tooltip, or open to keep it visible.
Vertical, reversed and RTL
A vertical slider needs an explicit container height. direction controls keyboard and horizontal value direction.
Editable ranges
Click the rail to add a handle. Drag a handle away from the rail to remove it, within minCount and maxCount.
Disabled state and focus
The ref exposes focus and blur. Semantic styles customize the track and handles.