For a maintained alternative, check out https://mapbox.github.io/mr-ui/#controlrange.
A react component that makes <input type='range' />
compatible across all browsers.
It is a known issue the onChange
event does not work in IE. This seeks to be a simple drop in replacement for any <input type='range' />
and still have the onChange
event fire in IE.
You can pass in any props
and className
s as necessary:
var Range = require('@mapbox/react-range');
<Range
className='slider'
onChange={this.handleOnChange}
type='range'
value={20}
min={0}
max={100} />