gatsby-plugin-nprogress

5.8.0 • Public • Published

gatsby-plugin-nprogress

Automatically shows the accessible-nprogress indicator when a page is delayed in loading (which Gatsby considers as one second after clicking on a link).

Install

npm install gatsby-plugin-nprogress

How to use

// In your gatsby-config.js
plugins: [
  {
    resolve: `gatsby-plugin-nprogress`,
    options: {
      // Setting a color is optional.
      color: `tomato`,
      // Disable the loading spinner.
      showSpinner: false,
    },
  },
]

You can pass in the custom configuration option color to customize the accessible-nprogress CSS. You may also pass all available accessible-nprogress configuration options into the plugin, too.

Install

npm i gatsby-plugin-nprogress

DownloadsWeekly Downloads

13,216

Version

5.8.0

License

MIT

Unpacked Size

36.1 kB

Total Files

7

Last publish

Collaborators

  • kathmbeck
  • j0sh77
  • dschau
  • kylemathews
  • pieh
  • wardpeet
  • tylerbarnes
  • fk
  • smthomas
  • lekoarts
  • rachelbahl
  • daniellewgatsby
  • freiksenet
  • monastic.panic
  • m-allanson
  • sidharthachatterjee
  • moocar