UI Component Lab 日本語

← All components

Input

Slider

Picks a number within a range by dragging a knob along a track.

Demo

40

Also known as

How to recognize it

A horizontal line with a round knob. The part of the line before the knob is often filled with the accent color.

Behavior

  • Dragging the knob or clicking the track changes the value.
  • Best when the exact number matters less than the rough position, such as volume or brightness.
  • The value moves in fixed steps; this demo uses steps of 5.

Keyboard

KeyAction
→ / ↑Increases the value by one step.
← / ↓Decreases the value by one step.
HomeSets the minimum value.
EndSets the maximum value.
Page Up / Page DownChanges the value by a larger amount (depends on the browser).
  • Number input: A slider picks a rough position by dragging; a number input is better when the exact number matters.

Sources