react-top-loading-bar
A very simple, highly customisable youtube-like react loader component.
Install
- using npm
- using yarn
Usage
Properties
Property | Type | Default | Description |
---|---|---|---|
progress | Number | 0 |
The progress/width indicator, progress prop varies from 0 to 100 . |
color | String | red |
The color of the loading bar, color take values like css property background-color: do, for example red , #000 rgb(255,0,0) etc. |
height | Number | 3 |
The height of the loading bar in pixels. |
className | String | You can provide a class you'd like to add to the loading bar to add some styles to it | |
onLoaderFinished | Function | This is called when the loading bar completes, reaches 100% of his width. | |
onProgressChange | Function | This is called each time loading bar value changes. |