Overview
Volume60
Price range80
Installation
Usage
Variants
Basic
Volume
With Value Display
Brightness30
Range Slider
Price range80
Disabled
Locked setting
API Reference
Controlled value(s). One element for single, two elements for range.
Uncontrolled default value.
Callback fired when the value changes while dragging.
Minimum value.
Maximum value.
Increment step between values.
Label shown above the slider.
Displays the current value next to the label.
Disables the slider.
Layout orientation. Values:
horizontal · verticalAdditional Tailwind classes for custom overrides.
Accessibility
- Slider uses
role="slider"witharia-valuenow,aria-valuemin, andaria-valuemax - Arrow keys move the thumb by one step; Page Up/Down move by 10% of the range
- Home/End keys jump to minimum/maximum
- Range sliders have two separate thumb elements, each keyboard-navigable
disabledusesaria-disabled="true"and removes the element from tab order- Label is associated via
aria-labelledby
Do’s & Don’ts
Do
- Use Slider for continuous numeric values where precision isn’t critical
- Always show the current value with
showValuewhen precision matters - Use
stepto constrain values to meaningful increments - Use a range Slider for min/max filtering (price, date)
Don't
- Don’t use Slider when an exact value must be entered — use a number Input
- Don’t use very small steps on a short track — it becomes imprecise
- Don’t use Slider for binary on/off settings — use Switch instead
- Don’t omit a label — the track alone does not convey meaning