0.0.5 • Published 5 years ago

react-line-progress-bar-steps v0.0.5

Weekly downloads
5
License
MIT
Repository
github
Last release
5 years ago

React Progress Bar


A React component, that display a progress bar with thresholds and chanks of values.

3 react progress bar with chanks and splits and color for each treshold

Install

npm i -S react-line-progress-bar-steps
yarn add react-line-progress-bar-steps

Usage

import StepsPrograssBar from 'react-line-progress-bar-steps';

ReactDOM.render(<div>
<StepsPrograssBar />
</div>)

API

props

nametypedefaultdescription
showPrecentageStringnullcan get 'start' or 'end' ( display precentage number on the graph )
colorsArray[]default empty Array, if recived will determen the number of chanks and there colors
colorSetString'colorfull'default color set - can be 'colorfull', 'warm', 'dark'. to make it work colors prop shuld be empty Array
partialValueNumber98the value of the precentage to be calculate
totalValueNumber100the total amount from witch precentage will be taken
isStepIncreseBoolfalsedefault False, if true will start as a small chank and grow at the end
pWrapStayleObject{}give user style controll for wrap
chankStyleObject{}give user style controll for chank div component
pTextStyleObject{}give user style controll for text precantage
firstElStyleObject{}give user style controll for first chank
lastElStyleObject{}give user style controll for last chank

Default chanks number is '5', colors prop is Array length if used will determen the chanks number.

License

rc-progress is released under the MIT license.