2.0.0 • Published 3 years ago

vtril-progress v2.0.0

Weekly downloads
-
License
MIT
Repository
-
Last release
3 years ago

Inertia.js Progress

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

Installation

npm install vtril-progress
yarn add vtril-progress

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

import VtrilProgress from "vtril-progress";

VtrilProgress.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,
});

Disable for an Inertia Request

VtrilProgress.disable(() => {
  Inertia.post("/notification-seen");
});
2.0.0

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago