Sliders

A slider is a control that lets the user select from a range of values by moving a thumb control along a track.

A slider control

Is this the right control?

Use a slider when you want your users to be able to set defined, contiguous values (such as volume or brightness) or a range of discrete values (such as screen resolution settings).

A slider is a good choice when you know that users think of the value as a relative quantity, not a numeric value. For example, users think about setting their audio volume to low or medium—not about setting the value to 2 or 5.

Don't use a slider for binary settings. Use a toggle switch instead.

Here are some additional factors to consider when deciding whether to use a slider:

If you are deciding between a slider and a numeric text box, use a numeric text box if:

Use a slider if:

Recommendations

Additional usage guidance

Choosing the right layout: horizontal or vertical

You can orient your slider horizontally or vertically. Use these guidelines to determine which layout to use.

Range direction

The range direction is the direction you move the slider when you slide it from its current value to its max value.

Steps and tick marks

Labels