Slider

A slider lets user select a value (or range) from a given range of values.

Usage
Code
Interactions

Types

Based on usage, sliders are of two types -

Default slider

The default slider can be used whenever selection of a single value is required out of a range.

Range slider

Range slider is used if the user wants to select a range instead of a single value.

Variants

Based on selection, sliders have two variants -

Discrete slider

In the case of discrete slier, while dragging slider knob will snap from one tick mark to the other. No values between two tick marks can be selected.

Free slider

In the case of free slider, while dragging slider knob can move to each and every intermediate value possible. Values between tick marks can also be selected.

Structure



Structure of slider
PropertyValue(s)
Size (knob)16x16 px

Configurations

PropertyValue(s)Default value
Label
(optional)
<label>-
Ticks<ticks>-
Numbers
(optional)
<numbers>-
Step size<size>1

Usage

Pairing with metric inputs

Use slider with metric inputs for better accessibility in the case where choosing a specific value is important.

Slider paired with metrix inputs Slider paired with metrix inputs