<NuxtLoadingIndicator>

👉

Nuxt provides <NuxtLoadingIndicator> to display a progress bar on page navigation.

Examples

Basic Usage

Add <NuxtLoadingIndicator/> in your app.vue or layouts.

app.vue
<template>
  <NuxtLayout>
    <NuxtLoadingIndicator /> <!-- here -->
    <NuxtPage />
  </NuxtLayout>
</template>
Open on StackBlitz

Props

  • color: The color of the loading bar.
  • height: Height of the loading bar, in pixels (default 3).
  • duration: Duration of the loading bar, in milliseconds (default 2000).
  • throttle: Throttle the appearing and hiding, in milliseconds (default 200).
🔎
This component is completely optional. To achieve full customization, you can implement your own one based on this file .
Edit this page on GitHub Updated at Sat, Aug 13, 2022