Skip to content
BENIBIX Learn

Slider

Design🖼️ User InterfaceForm Controls

Also known as Range Slider, Range Input

A handle you slide along a line. It picks a value, like how loud.

Think of it like

It is like a volume knob made straight. Slide it to turn things up or down.

Example

A hotel site uses a two-handle slider for price. Emma drags it to between $80 and $150.

Why it matters

It makes rough choices quick and shows where a value sits in its range.

Definition

A slider lets people pick a value by dragging a handle along a track. It suits rough choices where the exact number matters less, like volume, brightness or a price range. Hitting an exact value by dragging is hard, so a slider often comes with a number box. Some sliders have two handles to pick a range.

Example code

html
<label for="vol">Volume</label>
<input id="vol" type="range" min="0" max="100">
The range type draws a slider that also moves with the arrow keys.

Try it

$10$200

A price range is a near enough question, which is what a slider is for.

Drag it. Now try to stop exactly on 37, which is why an exact number wants a box.

Common mistake

Using a slider for an exact number, like age. Dragging to 37 is fiddly; a box is faster.

Key takeaways

  1. 1
    Drag to pick. Along a track.
  2. 2
    For rough values. Volume, brightness, price.
  3. 3
    Add a box for exact. Typing is precise.

Learn it properly