1.0.4 • Published 10 years ago
react-discrete-slider v1.0.4
React.js slider component
A simple slider made with react.js
Install with
npm install react-discrete-slider --save
Properties and configuration
<Bar
value={this.state.value}
showLabel
buttons
getColor={getColorFunction}/>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