
Security News
Meet Socket at Black Hat and DEF CON 2025 in Las Vegas
Meet Socket at Black Hat & DEF CON 2025 for 1:1s, insider security talks at Allegiant Stadium, and a private dinner with top minds in software supply chain security.
react-topbar-progress-indicator
Advanced tools
topbar
progress indicator as a React component
Will simply show()
and hide()
topbar
when the component is respectively mounted and unmounted.
Since topbar is a singleton, using <TopBarProgress />
multiples times will
take this in consideration. This means that hide()
will only be called when
all <TopBarProgress />
have been unmounted.
For example, if you render 2 <TopBarProgress />
and unmount one (eg: you are doing 2
async things and only once is done), hide()
won't be called.
You will need to have both instances unmounted.
npm install react-topbar-progress-indicator
## or
yarn add react-topbar-progress-indicator
import TopBarProgress from "react-topbar-progress-indicator";
TopBarProgress.config({
barColors: {
"0": "#fff",
"1.0": "#fff"
},
shadowBlur: 5
});
const YourThing = () => {
return <div>{this.state.loading && <TopBarProgress />}</div>;
};
Since topbar
is a singleton, you should configure via Topbar.config()
.
barThickness
(Integer, px)The progress bar thickness in px
(default: 3).
barColors
(Object { progress: color })Object of gradient color stops used to draw the progress bar.
Example:
barColors: {
"0": "#f00",
"0.5": "#0f0",
"1.0": "#00f",
},
shadowBlur
Integer of the shadow blur in px
(default: 10
).
shadowColor
String that represent the shadow color (hexa, default: #000
).
Check the changelog for more informations about recent releases. You might also find releases notes on GitHub.
⇄ Pull requests and ★ Stars are always welcome.
Please read the contribution guidelines before contributing.
We want the community to be friendly and respectful to each other. Please read our full code of conduct so that you can understand what actions will and will not be tolerated.
FAQs
topbar progress indicator React component
The npm package react-topbar-progress-indicator receives a total of 21,731 weekly downloads. As such, react-topbar-progress-indicator popularity was classified as popular.
We found that react-topbar-progress-indicator demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Meet Socket at Black Hat & DEF CON 2025 for 1:1s, insider security talks at Allegiant Stadium, and a private dinner with top minds in software supply chain security.
Security News
CAI is a new open source AI framework that automates penetration testing tasks like scanning and exploitation up to 3,600× faster than humans.
Security News
Deno 2.4 brings back bundling, improves dependency updates and telemetry, and makes the runtime more practical for real-world JavaScript projects.