Slider
UI DesignWhat 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.
Related terms
View all UI Design terms →Input Field
An input field, or text field, is a box where users type information , such as a name, email address or password. It is the most common…
Touch Target Size
Touch target size is the size of the area users can tap to activate an element, such as a button, link or icon. The target can be larger…
Interactive States
Interactive states are the visual changes that show how a component responds to the user. They tell users whether an element can be used…
Keyboard Navigation
Keyboard navigation is using a website or app with the keyboard instead of a mouse . Users move between links, buttons and fields with the…
Stepper
A stepper is a UI control with two common meanings . It can be a pair of minus and plus buttons that change a number in small steps, or a…
Accessibility
Accessibility in UX design refers to creating digital products that can be used by everyone , including people with visual, motor…
