Page loading progress bar (nprogress)
See original GitHub issueUsage example, including component/hook API
Can be used to indicate that something is loading. See for example nprogress or react-top-loading-bar
Possible implementation – describe how the feature can be implemented
Should probably use the existing Progress
component when implementing this.
I’m not 100% sure what the best way to implement this would be. Perhaps a hook:
const App = () => {
const { start, stop, increment, ProgressBar }= useProgressBar({
color: "pink",
})
return (
<div>
<ProgressBar />
<Button onClick={start}>Load</Button>
<Button onClick={end}>Finish</Button>
</div>
)
}
Do you want to contribute this feature and create a pull request
Yes
Issue Analytics
- State:
- Created 2 years ago
- Reactions:2
- Comments:7 (7 by maintainers)
Top Results From Across the Web
NProgress.js to show progress of page loading - Stack Overflow
I am unable to find any documentation or an easy way to add this loading effect on page load and have it finish...
Read more >NProgress: slim progress bars in JavaScript - Rico Sta. Cruz
A nanoscopic progress bar. Featuring realistic trickle animations to convince your users that something is happening! NProgress.start() — shows the progress bar.
Read more >rstacruz/nprogress: For slim progress bars like on ... - GitHub
Incrementing: To increment the progress bar, just use .inc() . This increments it with a random amount. This will never get to 100%:...
Read more >useLoadingBar – A Custom React Hook for Rendering a Page ...
NProgress is a popular slim progress bar library that mimics the behavior of mobile browsers as they load content from a site. The...
Read more >How to build a progress bar indicator in Next.js - LogRocket Blog
Learn how to use Next.js Router events to create a progress bar indicator and then customize the loader with styling and animation.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@elmaxe @rtivital Any progress (no pun intended) on this? 😃
Thanks for feature request, it’s a good feature that should be added as a new package
@mantine/nprogress
, with this implementation:Do you want to work on this package?