multi-color-progressbar-with-indicator
multiple color progressbar with indicator
Appearance
Install
npm install --save multi-color-progressbar-with-indicator
Usage
import React Component from 'react' import MultiColorProgressbar from 'multi-color-progressbar-with-indicator'import 'multi-color-progressbar-with-indicator/dist/index.css' { var bars = width: 40 color: '#dc3545' width: 15 color: '#d5873d' width: 15 color: '#f2d261' width: 15 color: '#9baa4b' width: 15 color: '#6fa053' let wrapper = padding: '30px' return <div => <div => <MultiColorProgressbar = = = = = /> </div> <div => <MultiColorProgressbar = = = = = /> </div> <div => <MultiColorProgressbar = = = = = /> </div> </div> }
Properties
Prop | DataType | Description | Default |
---|---|---|---|
height | number | height of progress bar (in pixel) | 10 |
color | string | default color of progress bar | '#007bff' |
bars | array of Objects | array of progress objects (width and color) | [{width: 100}] |
minVal | number | min value of multiple progress bar | 0 |
maxVal | number | max value of multiple progress bar | 100 |
value | number | value of multiple progress bar | 0 |
fontSize | number | font size of step values (in pixel) | 15 |
indicatorVisible | bool | show/hide indicator | true |
stepValuesVisible | bool | show/hide step values | true |
License
MIT © jsguru-git