1.0.1 • Published 1 year ago

vue-progress-bar-loader v1.0.1

Weekly downloads
-
License
ISC
Repository
github
Last release
1 year ago

vue-progress-bar-loader

This library helps you to quickly show a progress bar loading screen on your Vue application.

Demo

Demo link :- https://jam.dev/c/01172b92-cd75-4df4-8701-0c8a7b2a3741

Installation

npm install vue-progress-bar-loader

Usage

Wrap the ProgressBar component around your loading content within your Vue component's DOM.

<script>
import ProgressBar from '../node_modules/vue-progress-bar-loader/src/components/progress-bar.vue'
</script>

<template>
  <main>
    <progress-bar />
  </main>
</template>

Options

Bar Props

Prop NameTypeDescription
durationNumberDefault : 5000ms duration of animation
heightStringDefault : 7px
widthStringDefault : 60%
backgroundColorStringDefault : green (You can pass hex values too)
borderRadiusStringDefault : 10px
loadingBooleanDefault : true

Text Props

Prop NameTypeDescription
messagesArrayDefault "text1", "text2", "text3", Max - only 3 text
textSizeStringDefault : 30px
textColorStringDefault : black
textFontFamilyStringDefault : sans-serif

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.