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

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
1.0.40latest

Version History

VersionDownloads (Last 7 Days)Published
1.0.40
1.0.30
1.0.21
1.0.10
1.0.00

Package Sidebar

Install

npm i react-discrete-slider

Weekly Downloads

1

Version

1.0.4

License

MIT

Last publish

Collaborators

  • emadb