fndn/ui

Components

Slider

Beta

Pick a number, or a range, by dragging along a track.

Details

Pick a number, or a range between two, by dragging a thumb along a track; arrow keys step it. The control and thumb sizes are the switch's (md 24px with a 20px thumb, sm 18px with 14px), the rail is the switch's colours (line-strong, the filled range in ink) and the thumb is the segmented control's (surface with shadow.btn). An optional label and value sit on one row above. Behaviour by Ark UI's slider (Zag). Controlled or uncontrolled.

Behaviour from Ark UI, the slider machine of Zag.