Nprogress component for Next.js app.
npm install @taishikato/nextjs-progressbarA simple Next.js progressbar based on Next.js Progressbar.
``bash`
npm i @taishikato/nextjs-progressbar
After installing the package, import this in your pages/_app.js file.
`bash`
import NextNprogress from '@taishikato/nextjs-progressbar';
And for rendering add inside Container component.
``
startPosition={0.3}
stopDelayMs={200}
height="3"
/>
- color: to change the default color of progressbar. You can also use rgb(,,) or rgba(,,,).startPosition
- : to set the default starting position : 0.3 = 30%.stopDelayMs
- : time for delay to stop progressbar in ms.height
- : height of progressbar in px.
You can use other configurations which NProgress provides by adding a JSON in options props.
```
/>