vue-progress-button

A Vue project to make buttons that show the progress when being clicked on.
3,255
Install
npm install vue-progress-button
Latest Version:1.3.0
Vue:2
License:MIT
Last Updated:Mar 7, 2018
Links: npm
Maintainer: websmurf

Notify

A simple button that displays progress. Compatible with Vue 2.x

Inspired by the button animations displayed on https://tympanus.net/Development/ProgressButtonStyles/

Install

$ npm install vue-progress-button --save

Usage

Inside your component:

To get the most basic version of a progress button

<progress-button>Button</progress-button>

The progress can be configured with another filling color. Simply add the fill-color property to the progress button element and give a color to it.

<progress-button name="fillColor" class="btn btn-primary mr-1 mb-1" fill-color="#fff">Other fill color</progress-button>

The progress also be modified in terms of duration of the progress, position of the progress line

<progress-button name="duration" class="btn btn-info mr-1 mb-1" :duration="10000">10 second animation</progress-button>
<progress-button name="bottom" class="btn btn-success mr-1 mb-1" :height="5" position="bottom">Bottom fill</progress-button>
<progress-button name="bottom" class="btn btn-warning mr-1 mb-1" :height="5" position="top">Top fill</progress-button>
import Button from 'vue-progress-button'

export default {
  components: {
    'progress-button': Button
  }
}

Configuration options

Option Type Default Description
fillColor String '#555' The color of the progress bar filling the button
duration Number 2000 The duration of the progress bar filling the entire button in milliseconds
height Number 100 The height of the progress bar in px
position String 'fill' The position of the progress bar in the button, currently possible: top, bottom. Defaults to fill that fills the entire button

Related Packages

vue-top-progress

Yet another top progress loading bar component for Vue.js

40,376 249
vue-json-tree-view

a JSON Tree View Component in Vue.js

380,792 473
@v-c/picker

picker ui component for vue

57,185 32
vue-frame-crm

vue components for crm system

15,005
kokk

A beautiful way to create a documentation from markdown, and insert a vue compon...

10,142 49

Version History

Version Released Vue License
1.3.0 ^2.5.11 MIT
1.2.0 ^2.2.0 MIT
1.1.0 ^2.2.0 MIT
1.0.6 ^2.2.0 MIT
1.0.5 ^2.2.0 MIT
Pre-releases (2)
Version Released Vue License
1.3.2-alpha2 ^2.5.11 MIT
1.3.2-alpha ^2.5.11 MIT