Skip to content

Range slider - Usage

Range sliders allow users to adjust minimum and maximum numeric values within a given range.

AndroidreleasediOSreleasedReact 19released

Guidelines

  • Sliders are best suited for cases where people need to quickly set a value within a known range. They offer an intuitive way to adjust settings like volume, price filters, or relative distances.
  • Use step intervals (integers) when precision input is required.
  • Ensure the slider is wide enough to be easily interacted with on touch devices.
  • Use a tooltip to show the selected value.

When to use

  • Use when selecting a range of number values.
  • Use sliders when there is a need to show a selection of a range of values.
  • Use when needing to expose a variety of options or to limit the number of options quickly.

When not to use

  • Do not use ranges that are too small, for example, 1-3.
  • Do not use complex inputted values that are not numbers.

Behavior

  • Use haptic feedback to communicate to users that steps when using touch devices.
  • When the range slider’s minimum and maximum values are the same, the handles collide but do not overlap. This prevents usability issues where overlapping handles would make it difficult to regain control and adjust the values. See example below.

Example of handles collision at same min and max values

Error states

Error state logic is handled by the teams implementing the component. When an error occurs, the relevant text field adopts the error state and displays a clear message explaining the issue. In this state, the slider’s active track between the handles is not shown.

Read guidelines on error messages on text inputs.

Example of error state on range slider.

Interaction

  • Slide a handle, or type in the text fields to choose/change a value.
  • Clicking on the range slider’s track doesn’t pick a value.
  • The slide handles grow in size when selected or dragged to provide a visual cue to the user that the handle is being pressed.
  • A tooltip should appear when the user interacts with the slider, even when text input is present, ensuring consistent feedback on the selected value.

Placement

Place range sliders close to the content or filters they control to ensure clarity and ease of use. They should appear next to related labels, content or result previews, so it’s obvious what the value adjustment affects.

Avoid placing them in crowded areas or too far from their context, as this can make the connection between control and effect unclear. Ensure enough horizontal space for smooth interaction, especially on touch devices.

Examples from FINN and Blocket.

Questions?

Feel free to ask any questions on usage in the Warp DS Slack channel: #warp-design-system