Range slider

The range slider input allows users to select a number from a defined range using a visual slider

Decorative page cover image showing and example of range sliders in use

Best practices

Sliders provide a visual indication of adjustable content, where the user can increase or decrease the value by moving the handle along a horizontal track.

Anatomy

Listing all the separate elements of the range slider
  1. Label: Text that clearly indicates to the user about the content they are providing.
  2. Value: The position of the bar translated to a value
  3. Helper text (optional): Assistive text that can provide additional aid or context to the user. Often used to explain the correct data format or limitations.
  4. Bar: Indicates how much of the container has been filled.
  5. Handle: Interactive element for users to adjust the value.
  6. Container: The static area that the bar and handle moves on top of and acts as a fixed visual reference of the max range.

Variants

Multiple values
Examples of the range slider showing multiple values
Single values
Examples of the range slider showing single values