1.0.2 • Published 4 years ago

vue-pixel-bar v1.0.2

Weekly downloads
1
License
MIT
Repository
github
Last release
4 years ago

vue-pixel-bar

It's a vue component that will progress to a target number at a specified duration

vue2 Build Status minified gzip license npm

vue-pixel-bar is a dependency-free, lightweight vue component that can be overwrited by yourself. Css bar Made by Aleks

pixelBar

How to use?

npm install vue-pixel-bar

Example

<template>
  <pixel-bar :value="1900" :maxValue="4000" :duration='2000' :play='true'/>
</template>

<script>
  import pixelBar from 'vue-pixel-bar';
  export default {
    components: { pixelBar },
  }
</script>

Options

PropertyDescriptiontypedefault
valuethe value you want to end atNumber1900
maxValuethe value you want to progress atNumber2000
durationduration in millisecondNumber4000
playwhen mounted it will not autoplay withoutBooleanfalse

Slots

slot NameDescriptionprops
defaultWriting on the progress barreturn current progress value

License

This project is licensed under MIT License