0.0.3 • Published 8 years ago

@joegesualdo/react-slider v0.0.3

Weekly downloads
2
License
MIT
Repository
github
Last release
8 years ago

react-slider Build Status

A slider implemented in React.

Install

$ npm install --save @joegesualdo/react-slider 

react-slider-demo

Usage

import Slider from '@joegesualdo/react-slider'

<Slider
  width={300}
  position={30}
  onSlide={function(pos){console.log(pos)}}
  onStart={function(){console.log("Started!!!")}}
  onStop={function(){console.log("Stop!!!")}}
>
  <div style={
    {
      border: '1px solid #aaa',
      background: '#fff',
      borderRadius: '100%',
      boxShadow: '0 2px 4px rgba(0,0,0,0.1)',
      cursor: 'pointer',
      height: 24,
      outline: 'none',
      width: 24,
    }
  }></div>
</Slider>

Test

$ npm test

Build

$ npm run build

Related

License

MIT © Joe Gesualdo