react-discrete-slider

1.0.4 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i react-discrete-slider

Weekly Downloads

5

Version

1.0.4

License

MIT

Last publish

Collaborators

  • emadb