vue-simple-spinner
A simple, flexible spinner for Vue.js
vue-simple-spinner is designed to be a lightweight Vue.js spinner requiring minimal configuration.
Documentation and demo
http://dzwillia.github.io/vue-simple-spinner/
Requirements
Browser support
All (http://caniuse.com/#search=css-animation
Installation
NPM
npm install vue-simple-spinner --save
Usage
All styling for this component is done via computed styles in the Spinner.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 Spinner from 'vue-simple-spinner';
new Vue({
components: {
Spinner
}
});
Globals (script tag)
Add a script tag pointing to dist/vue-simple-spinner.js
after adding Vue.
Example:
<html>
<head>
...
</head>
<body>
<div id="app">
<vue-simple-spinner>Hello world!</vue-simple-spinner>
</div>
<script src="path/to/vue.js"></script>
<script src="path/to/vue-simple-spinner.js"></script>
<script>
new Vue({
el: '#app',
components: {
VueSimpleSpinner
}
});
</script>
</body>
</html>
License
vue-simple-spinner is open source and released under the MIT License.
Copyright (c) 2017 David Z Williams.
PS: I would love to know if you're using vue-simple-spinner. Tweet to me at @padredaveo.