All Projects → mapbox → react-range

mapbox / react-range

Licence: ISC license
A react range slider component

Programming Languages

javascript
184084 projects - #8 most used programming language

⚠️ This repo is archived ⚠️

For a maintained alternative, check out https://mapbox.github.io/mr-ui/#controlrange.


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} />
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].