Usage
Sliders allow users to view and select a value (or range) from the range along a bar. They’re ideal for adjusting settings such as volume and brightness, or for applying image filters.
Sliders can use icons on both ends of the bar to represent a numeric or relative scale. The range of values or the nature of the values, such as volume change, can be communicated with icons.
Immediate effects
Changes made with sliders are immediate, allowing the user to make slider adjustments while determining a selection. Sliders shouldn’t be used to adjust settings with any delay in providing user feedback.
Current state
Sliders reflect the current state of the settings they control.
Principles
Adjustable
Sliders should be used for making selections from a range of values.
Immediate
When interacting with a slider, changes should be reflected back to a user immediately.
Accessible
Sliders should present the full range of choices that are available to a user.
Anatomy
A slider can contain the following elements:
1. Track
The track shows the range that is available for a user to select from. For left-to-right (LTR) languages, the smallest value appears on the far left end of the track and the largest value is on the far right. For right-to-left (RTL) languages this orientation is reversed.
2. Thumb
The thumb is a position indicator that can be moved along the track, displaying the selected value of its position.
3. Value label (optional)
A value label displays the specific numeric value that corresponds with the thumb’s placement.
4. Tick mark (optional)
Tick marks along a track represent predetermined values that the user can move the slider to.
Continuous sliders
Continuous sliders allow users to make selections that don’t require a specific value.
Discrete sliders
Discrete sliders display a numeric value label upon pressing the thumb, allowing users to input an exact value.
Theming
Specs
Continuous sliders
Inactive track: 4dp height
Thumb radius: 20 dp
Discrete sliders
Inactive track: 4dp height
Thumb radius: 20dp
Discrete regions of the track: 2dp radius circles