@mapbox/react-range

A react component that makes input type=range compatible across all browsers

Stats

StarsIssuesVersionUpdatedCreatedSize
@mapbox/react-range
2300.0.75 years ago5 years agoMinified + gzip package size for @mapbox/react-range in KB

Readme

React Range

A react component that makes <input type='range' /> compatible across all browsers.

Why?

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.

Usage

You can pass in any props and classNames as necessary:

var Range = require('@mapbox/react-range');

<Range
  className='slider'
  onChange={this.handleOnChange}
  type='range'
  value={20}
  min={0}
  max={100} />

If you find any bugs or have a feature request, please open an issue on github!

The npm package download data comes from npm's download counts api and package details come from npms.io.