0.1.1 • Published 6 years ago

vue-page-progress v0.1.1

Weekly downloads
11
License
-
Repository
-
Last release
6 years ago

vue-page-progress

A simple component that provides a vertical or horizontal bar to track scroll progress for a given page.

Scroll progress can either be for horizontal or vertical scrolling.

Installation

npm i vue-page-progress

Usage

Global Registration - main.js

import VuePageProgress from 'vue-page-progress'

Vue.component('VuePageProgress', VuePageProgress)

Register In A Component

<template>
  <div>
    <VuePageProgress />
  </div>
</template>

<script>
import VuePageProgress from "vue-page-progress";
export default {
  name: 'app',
  components: {
    VuePageProgress
  }
}
</script>

Props (all optional)

PropertyTypeDefaultProp Description
meterSizeString3pxThe size of the progress bar fill
colourString#61E2CFThe colour of the progress bar fill
scrollDirectionString"vertical"Corresponds to whether or not the scroll progress meter should fill based on horizontal or vertical scrolling
barPositionString"top"The position of the progress bar - can be either top, right, bottom or left
0.1.1

6 years ago

0.1.0

6 years ago