Home Examples Charts Dashboard Projects Menu

Vue.js examples
Learn Vue.js

vue simple progress

Related:
Vue: Step-By-Step Guide To Mastering Vue.js From Beginner To Advanced (Vue.js, Learning Vue js 2)

Simple progressbar component for vue.js. vue-simple-progress is designed to be a lightweight vuejs progress bar requiring minimal configuration.

This component lets you add a progressbar to your vue app.
It includes a variety of styles, as shown below:

progressbar

Requirements

You need Vue.js for this progress bar.

  • Vue.js (^v2.1.4)
  • npm

Installation

NPM
To install, you need to have npm.

npm install vue-simple-progress --save

Usage

All styling for this component is done via computed styles in the Progress.vue component and requires no external CSS files.

ES6

The following examples can also be used with CommonJS by replacing ES6-specific syntax with CommonJS equivalents.

import Vue from 'vue'
import ProgressBar from 'vue-simple-progress'

new Vue({
components: {
ProgressBar
}
})

Globals (script tag)

Add a script tag pointing to dist/vue-simple-progress.min.js after adding Vue.

Example:

html
<html>
<head>
...
</head>
<body>
<div id="app">
<vue-simple-progress></vue-simple-progress>
</div>

<script src="path/to/vue.js"></script>
<script src="path/to/vue-simple-progress.js"></script>
<script>
new Vue({
el: '#app'
})
</script>
</body>
</html>

Github: http://github.com/dzwillia/vue-simple-progress#readme


← vue chartist vuejs noty →

© vuejsexamples.net - Privacy Policy - Cookie Policy