Package Exports
- reprogressbars
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (reprogressbars) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
Reprogressbars
Intro
Reprogressbars is a progress bar library built on React.
The main purpose of this library is to simplify displaying progress from ajax requests so that you can just specify when you are and are not loading, and Reprogressbars can animate automatically in between.
Examples
import { ProgressBar } from 'reprogressbars';
<ProgressBar isLoading={this.state.isLoading} />
For a progress bar fixed to the top of your page:
<ProgressBar isLoading={this.state.isLoading} className="fixed-progress-bar" />
.fixed-progress-bar {
position: fixed;
left: 0;
top: 0;
width: 100%;
}
The isLoading
prop makes for simple integration with Redux.
You can also change the height or color:
<ProgressBar isLoading={this.state.isLoading} height="4px" color="#B71C1C" />
API
See docs
Contribution
Please create an issue for issues or bugs. Pull requests welcome.
License
Copyright (c) 2017-2018 Nick Stanish