Range Slider
Dual-thumb slider for selecting a bounded numeric range with keyboard support.
Anatomy
1
2
3
- 1 Label — names the range being adjusted
- 2 Value display — shows the current lower and upper values
- 3 Dual-thumb track — two native range inputs share one visual track
Options
Default
Disabled
| Property | Values | Default |
|---|---|---|
| label | text | "Range" |
| min | number | 0 |
| max | number | 100 |
| lowerValue | number | 25 |
| upperValue | number | 75 |
| step | number | 1 |
| disabled | true / false | false |
Behaviors
Stepped adjustments
Both thumbs respect the configured step so ranges snap to meaningful increments.
Live value display
The value display updates as either thumb moves so the selected interval stays readable.
Disabled state
Disabled sliders preserve the selected bounds visually but cannot be changed by pointer or keyboard.
Usage guidelines
Do
Use a range slider when people need to set both minimum and maximum values within the same scale.
Don't
Don’t replace a shared range control with unrelated numeric fields when a visual interval is important.
Keyboard interactions
| Key | Interaction |
|---|---|
| Tab | Moves focus between the lower thumb, upper thumb, and the next focusable element. |
| ← / ↓ | Moves the focused thumb down by one step without crossing the other thumb. |
| → / ↑ | Moves the focused thumb up by one step without crossing the other thumb. |
| Home / End | Moves the focused thumb to the minimum or maximum bound. |
Accessibility
- Each thumb uses a native
<input type="range">for built-in keyboard support. - Provide clear labels for both bounds, especially when the surrounding field label is not enough context.
- Keep the visible value display synchronized with the actual form values.
- Disabled state uses the native
disabledattribute on both thumbs.