react-drag-slider
v0.1.5
Published
Simple react drag slider
Downloads
22
Readme
react-drag-slider
npm i --save react-drag-slider
##Props
width
(number) - width of sliderbarElement
(React.Element) - bar contentbarSize
({width, height}) - bar sizes
##Usage
<ReactDragSlider width={500} barElement={<img src="http://placehold.it/50x20" alt="bar"/>} barSize={{width: 50, height: 20}}>
<img src="http://placehold.it/400x400" alt=""/>
<img src="http://placehold.it/400x400" alt=""/>
<img src="http://placehold.it/400x400" alt=""/>
<img src="http://placehold.it/400x400" alt=""/>
<img src="http://placehold.it/400x400" alt=""/>
<img src="http://placehold.it/400x400" alt=""/>
</ReactDragSlider>