Components

Range sliders

Range sliders allow the user to select a value between a defined minimum and maximum range. They can work well for discovery and education, but because they’re imprecise and difficult to manipulate, are not the best choice when the user is likely to have a specific number that they want to input.

Standard range slider

Range sliders can have optional min, max and step attributes to restrict the user’s selection.

HTML code snippet

<!-- If the slider's label is visually hidden, as it is in the below example, make sure to visually describe the purpose of the slider elsewhere -->

<label for="example-range-slider" class="u-visually-hidden">Example range slider</label>
<input type="range" min="0" max="100" step="5" class="a-range" id="example-range-slider">

Latest Updates

Page last edited:
Show all details
Edit page