
Description
react-input-range is a React component for picking a numeric value, or a range of values, on a slider. It can work with a single value or with a minimum and maximum, and you can set limits, a step size and labels. The README shows how to format the labels, for example to add a unit or reduce the decimal places, by passing a function. Props include allowSameValues, draggableTrack, disabled, maxValue and minValue, along with class name overrides and ARIA attributes such as aria-labelledby and aria-controls. By default the component applies basic styles, and you can import an optional CSS file for them or override the class names to match your design. It is installed from npm and is used by importing it into a React project. The API section lists each prop with its type and what it does. The repository is public on GitHub and the README links a CodePen demo. It suits forms and filters where users need to choose a number inside a range, such as a price or age band.…
Highlights
- Slider for a single value or a min and max range
- Custom label formatting with a function
- Draggable track and disabled state
- Class name overrides and optional default CSS
- ARIA attributes for labels and controls
Ratings & Reviews
No ratings yet
Be the first to rate react-input-range.
People also visit
react-bootstrap-range-slider
A range slider component with tooltips for React Bootstrap
react-input-range FAQ
What is react-input-range?
A React component that lets users choose a number or a range of numbers with a slider.
How do I install it?
The README says to install react-input-range with npm or yarn, then import the component. The default CSS file is optional.
Can I change how the values look?
Yes. A formatLabel function can change how each value is shown, and classNames lets you override the default CSS classes.
Is it free?
Yes. The source is public on GitHub and listed as open source.
What are the best react-input-range alternatives?
Popular alternatives to react-input-range include react-range, react-bootstrap-range-slider and react-input-slider. See all react-input-range alternatives


















