React.js slider component
A simple slider made with react.js
Install with
npm install react-discrete-slider --save
Properties and configuration
<Bar = =/>
value
(number): value to be shownshowLabel
(bool): true if you want to view the labelsbuttons
(bool): true if you want to use the buttonsgetColor
(function): function to get the color. The function receive the current value so that the bar color can change based on valuesize
(number): number of stepsstep
(number): size of step for dividing the bar