-
npm install react-cloud-progress-bar --save
import ProgressBar from 'react-cloud-progress-bar'; <ProgressBar pFunctions={ [ { func:function1, paras:[para1] }, { func:function2, paras:[para1, para2] }, { func:function3, paras:[para1, para2, para3] } ] } color={'green'} height={'3px'} duration={'5'} />
A Array contain several functions and function's parameters, functions will be run when progress bar run out.
[ { func:function1, paras:[para1] }, { func:function2, paras:[para1, para2] }, { func:function3, paras:[para1, para2, para3] } ]
Set the progress bar color.
Set the progress bar height.
Set the progress bar duration.
- 1.0.3
cloudshadow/react-cloud-progress-bar
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
Simple React component for a progress bar
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published