1.0.4 • Published 8 years ago

react-discrete-slider v1.0.4

Weekly downloads
3
License
MIT
Repository
github
Last release
8 years ago

React.js slider component

A simple slider made with react.js

demo

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 shown
  • showLabel (bool): true if you want to view the labels
  • buttons (bool): true if you want to use the buttons
  • getColor (function): function to get the color. The function receive the current value so that the bar color can change based on value
  • size (number): number of steps
  • step (number): size of step for dividing the bar
1.0.4

8 years ago

1.0.3

8 years ago

1.0.2

8 years ago

1.0.1

9 years ago

1.0.0

9 years ago