Skip to main content

Slider

UI Design

What is a Slider

A slider is an input control for choosing a value from a range by dragging a thumb along a track. Some sliders have two thumbs to select a range, such as a minimum and maximum price.

How a Slider works

  • Track: The line that shows the full range
  • Thumb: The handle users drag
  • Value label: Shows the current number
  • Steps: Optional fixed increments, such as whole hours

When to use a Slider

Use sliders when an approximate value is good enough: volume, brightness, zoom or price filters. Setting an exact value with a slider is hard, especially on touchscreens and for people with motor impairments. If precision matters, add a text field or use another control.

Slider best practices

Show the current value and the minimum and maximum. Use steps that match how people think, such as whole hours instead of minutes. Make the thumb a large touch target and support arrow keys for keyboard users.

Frequently asked questions

When should you use a slider?

When users need to pick an approximate value or range and the exact number does not matter much, such as volume, brightness or a price range filter.

What if users need an exact value?

Sliders are hard to set precisely, especially on touchscreens. Pair the slider with a text field where users can type the number, or use a different control such as a stepper or input field.

Is a slider the same as a carousel slider?

No. In UI design, a slider is an input control with a thumb on a track. Rotating image banners are often called sliders too, but they are carousels.