Skip to content

RangeSlider

Edit on GitHub
@volvo-cars/css v2.3.0@volvo-cars/react-forms v2.0.0

The Range slider component lets users select values within a defined range, commonly used for adjusting settings or inputting numeric values.

The Range slider component allows users to select values within a defined range. It is commonly used for adjusting settings or inputting numeric values.

The selected value is typically presented as a dynamically updated value that is presented in close proximity to the slider itself.

Range slider usage

The min and max labels help users understand the scale of the available range they can select from. (This appears only in Figma and is not implemented in code).

Range slider with min and max labels

The Tooltip can be toggled to be displayed on drag.

Range slider with tooltip

This is the default state for range slider.

Range slider default state

The hover state is only shown when hovering on the thumb.

Range slider hover state

In the pressed state, you have the option to display a tooltip.

Range slider pressed state

Users can change values by holding and dragging the thumb.

Range slider drag interaction

Users can also click the track to instantly select a specific value.

Range slider click interaction

The Range slider track has a minimum target size of 40px. The thumb has a 40px by 40px minimum touch area.

Range slider target size

Users can adjust the value by pressing the arrow keys when the RangeSlider is in focus.

Range slider keyboard input

For values requiring precision, consider pairing the RangeSlider with numeric inputs. This approach is particularly helpful on mobile devices, where precise slider interactions can be difficult.

Range slider with numeric input

Slider interactions utilize simple linear animation with no easing or bounce effects. Tooltip fade-in when appearing and fade-out when disappearing.

Range slider with value label

Range slider with value label and min and max labels.

Multiple range sliders

Multiple sliders connected to calculate the estimated cost.