1.1.5 • Published 7 months ago

@bprogress/vue v1.1.5

Weekly downloads
-
License
MIT
Repository
github
Last release
7 months ago

BProgress for Vue

Create your own progress bar with Vue

Import

import { ProgressProvider } from '@bprogress/vue';

The @bprogress/vue package is a utility that lets you easily manage a progress bar, while remaining flexible with regard to the router you're using. It doesn't automatically start the progress bar when browsing, so you'll have to manage this logic yourself, unless you're using one of the integrations below.

Vue Frameworks Integrations

  • Soon...

Usage

<ProgressProvider>...</ProgressProvider>

Example

<script setup lang="ts">
import App from './App.vue';
import { ProgressProvider } from '@bprogress/vue';
</script>

<template>
  <ProgressProvider>
    <App />
  </ProgressProvider>
</template>
import { createApp } from 'vue';
import Root from './Root.vue';

createApp(Root).mount('#app');
<script setup lang="ts">
import { useProgress } from '@bprogress/vue';

const { start, stop, pause, resume } = useProgress();
</script>

<template>
  <button @click="start()">Start</button>
  <button @click="stop()">Stop</button>
  <button @click="pause">Pause</button>
  <button @click="resume">Resume</button>
</template>

More information on documentation

Go to the documentation to learn more about BProgress.

Issues

If you encounter any problems, do not hesitate to open an issue or make a PR here.

LICENSE

MIT

1.1.5

7 months ago

1.1.4

8 months ago

1.1.3

8 months ago

1.1.2

8 months ago

1.1.1

8 months ago

1.1.0

8 months ago

1.0.1

8 months ago

1.0.0

8 months ago