Skip to content

Slider

Choose a value on a scale using native browser controls.

alpina-ui/ui/slider

Interactive preview

16 pt

Usage notes

Set min, max and step to meaningful values, and supply a label. Native arrow-key input then moves the value by the configured step.

When to use

Adjust a bounded quantity when exploring nearby values is part of the task.

When to avoid

Use a numeric input for an exact amount that someone must transcribe from an official record.

Accessibility

Associate the label, minimum, maximum and current value. Verify the keyboard step matches the precision the task requires.

Keys
KeyAction
Arrow keysChange the value by one step.
Home / EndSet the minimum or maximum.

Content

Name the quantity and unit. Pair the thumb with a concise value so the person can read the setting without estimating its position.

Use
Print size / 120 mm
Avoid
More / Less

Copy in four languages

German
Druckbreite (mm)16 characters
French
Largeur d’impression (mm)25 characters
Italian
Larghezza di stampa (mm)24 characters
Romansh
Ladezza da stampa (mm)22 characters
Add to your project
npx --no-install alpina add slider