simple-reactjs-slider
v1.2.0
Published
Congrats! You just saved yourself hours of work by bootstrapping this project with TSDX. Let’s get you oriented with what’s here and how to use it.
Downloads
23
Maintainers
Readme
simple-reactjs-slider
Slider UI component for React.js
Install
Usage
import SimpleSlider from 'simple-reactjs-slider';
export default () => (
//slider-wrap need set width and height
<div id='slider-wrap'>
<SimpleSlider min={0} max={100} vertical onChange={(e)=>{}} defaultValue={15} />
</div>
);
demo
Slider
| Name | Type | Default | Description |
| ------------ | ------- | ------- | ----------- |
| defaultValue | number | 0
| Set initial value of slider. |
| min | number | 0
| Set minimum value of slider. |
| max | number | 0
| Set maximum value of slider. |
| vertical | boolean | false
| if false then horizontal slider. |
License
simple-reactjs-slider
is released under the MIT license.