https://github.com/emadb/react-discrete-slider
A simple slider written in React.js
https://github.com/emadb/react-discrete-slider
Last synced: over 1 year ago
JSON representation
A simple slider written in React.js
- Host: GitHub
- URL: https://github.com/emadb/react-discrete-slider
- Owner: emadb
- License: mit
- Created: 2015-10-27T11:53:12.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2016-01-06T15:49:56.000Z (over 10 years ago)
- Last Synced: 2025-02-05T05:29:38.012Z (over 1 year ago)
- Language: JavaScript
- Size: 1.08 MB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## React.js slider component
A simple slider made with react.js
[demo](http://emadb.github.com/react-discrete-slider/)
Install with
```npm install react-discrete-slider --save```
Properties and configuration
```jsx
```
- `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