This package adds an NProgress
Inertia.js Progress
This package adds an NProgress page loading indicator to your Inertia.js app.
Installationnpm 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, })
版权声明:
1、该文章(资料)来源于互联网公开信息,我方只是对该内容做点评,所分享的下载地址为原作者公开地址。2、网站不提供资料下载,如需下载请到原作者页面进行下载。