Description
react-range is a React range input that slides in any direction, so you can build sliders for one or two thumbs, horizontal or vertical. It is an unopinionated, stateless and controlled component: it renders no wrapping divs or extra markup, so you bring your own styles and markup, and it works well with CSS-in-JS. It is touchable and works on mobile devices, supports negative and decimal values, and handles right-to-left layouts. The component has no dependencies and the README gives its size as about 6kB gzipped. Keyboard support follows the ARIA slider pattern, with tab to focus thumbs, arrow keys and k or j to step one value, and page up and page down to step ten. For assistive technology, you name the slider with the label prop, which sets an aria-label, or with labelledBy, which points at a visible element. The README is careful about accessibility: it says it has been checked for keyboard operation and ARIA slider roles, but that it has not yet been tested for formal WCAG conformance, and it invites reports and user testing. Installation is through npm, and the project links examples and a StackBlitz sandbox.…
Highlights
- Single and multi-thumb range sliders
- Horizontal and vertical sliding
- No wrapping markup, bring your own styles
- Touch support for mobile
- Keyboard support following ARIA slider pattern
- No dependencies, about 6kB gzipped
Ratings & Reviews
No ratings yet
Be the first to rate react-range.
People also visit
react-bootstrap-range-slider
A range slider component with tooltips for React Bootstrap

rn-range-slider
A highly optimized pure JS implementation of Range Slider for React Native

range-slider-react-native
A highly optimized pure JS implementation of Range Slider
react-range FAQ
What is react-range?
A React range input component that lets users slide a value horizontally or vertically, with keyboard and touch support.
Does it come with styles?
No. It is unopinionated and adds no wrapping divs, so you bring your own markup and styles.
How big is it?
The README says it has no dependencies and is about 6kB gzipped.
How do I name the slider for screen readers?
Use the label prop for an accessible name, or labelledBy with the id of a visible label. The README recommends a visible label where possible.
Is it WCAG compliant?
The README says the maintainers have not done enough testing to claim conformance. It is operable by keyboard and follows ARIA slider patterns, and reports of accessibility issues are welcome.
Does it support keyboard control?
Yes. Tab and shift-tab move between thumbs, arrow keys and k or j change one step, and page up and page down change ten steps.
What are the best react-range alternatives?
Popular alternatives to react-range include react-input-range, react-bootstrap-range-slider and rn-range-slider. See all react-range alternatives
















