react-redux-progress
Progress bar for React and Redux applications.
Installation
Using npm:
Using yarn:
The UMD build is also available on unpkg:
You can find the library on window.ReactReduxProgress
.
Usage
Custom Progress
RenderProps
Simple usage with prepared component
You can store isProgressActive variable in redux store and control it with your actions
Get progress status
Async action
Prop Types for useProgress(isActive: boolean, options? = {}) hook
Property | Type | Required? | Default | Description |
---|---|---|---|---|
maxPercent | Integer | 85 |
Progress stop point | |
intervalTime | Integer | 450 |
Update interval milliseconds | |
increment | Function | Default incrementor (based on random) |
Checkout examples/real-world for more
Prop Types for ProgressBarProvider
Property | Type | Required? | Default | Description |
---|---|---|---|---|
isActive | Boolean | ✓ | Progress activation flag | |
color | String | #77b6ff |
Custom color for progress bar percent | |
className | String | Optional custom CSS class name to attach to root Percent element. |
||
styles | Object | Optional custom CSS styles to attach to root Percent element. |
||
absolute | Boolean | false |
Position property for Percent |