@inertiajs/progress
TypeScript icon, indicating that this package has built-in type declarations

0.2.7 • Public • Published

Inertia.js Progress

This package adds an NProgress page loading indicator to your Inertia.js app.

Installation

npm install @inertiajs/progress
yarn add @inertiajs/progress

Once it's been installed, initialize it in your app:

import { InertiaProgress } from '@inertiajs/progress'

InertiaProgress.init({
  // The delay after which the progress bar will
  // appear during navigation, in milliseconds.
  delay: 250,

  // The color of the progress bar.
  color: '#29d',

  // Whether to include the default NProgress styles.
  includeCSS: true,

  // Whether the NProgress spinner will be shown.
  showSpinner: false,
})

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.2.7
    15,833
    • latest

Version History

Package Sidebar

Install

npm i @inertiajs/progress

Weekly Downloads

17,091

Version

0.2.7

License

MIT

Unpacked Size

44.2 kB

Total Files

13

Last publish

Collaborators

  • thecrypticace
  • jessarcher
  • inertiajs-publisher
  • claudiodekker
  • reinink
  • sebastiandedeyne