0.0.11 • Published 4 years ago

nextjs-progressbar-withdelay v0.0.11

Weekly downloads
-
License
MIT
Repository
github
Last release
4 years ago

Next.js Progressbar

How to install?

npm i nextjs-progressbar-withdelay

How to use?

After installing the package, import this in your pages/_app.js file.

import NextNprogress from 'nextjs-progressbar-withdelay';

And for rendering add <NextNProgress /> inside Container component.

Default Config

<NextNprogress
  color="#29D"
  startPosition={0.3}
  startDelayMs={200}
  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%.
  • startDelayMs: time for delay to start progressbar in ms. pages which load faster than this will not display the progress bar.
  • stopDelayMs: time for delay to stop progressbar in ms.
  • height: height of progressbar in px.

Advanced Config

You can use other configurations which NProgress provides by adding a JSON in options props.

<NextNprogress
  options={{ easing: 'ease', speed: 500 }}
/>
0.0.11

4 years ago

0.0.10

4 years ago

0.0.9

4 years ago

0.0.8

4 years ago

0.0.7

4 years ago

0.0.6

4 years ago

0.0.5

4 years ago

0.0.4

4 years ago

0.0.3

4 years ago

0.0.2

4 years ago

0.0.1

4 years ago