react-slider-simple
Install:
yarn add react-slider-simple
or
npm install --save react-slider-simple
Usage:
{ return <Slider rounded=false /> ; }
;; state = percent: 30 { console; this; } { console; }; { const percent = thisstate; return <Slider value=percent onChange=thisonChange onDone=thisonDone thumbColor="rgb(219, 112, 147)" shadowColor="rgb(219, 112, 100)" sliderPathColor="rgb(119, 12, 47)" /> ; }
Properties:
Property | Description | Type | Defaults |
---|---|---|---|
onDone | returns % of slider position | function | - |
onChange | returns % of slider position | function | - |
value | value of slider | number | 0 |
defaultValue | default value of slider | number | 0 |
displayThumb | Always show thumb | boolean | true |
rounded | rounded corners | boolean | true |
thumbColor | The color of thumb | string | - |
shadowColor | The color of shadow | string | - |
sliderPathColor | The color of path | string | - |