vue-promise-btn
Vue.js plugin that handles buttons asynchronous lock and show loading state indicator.
Features
- Easy-to-use API
- Works with any tag and even forms
- Packaged with optional built-in spinner
- Only 1.5KB minified and gzipped
- ESM, CommonJS, UMD versions
Installation
npm install --save vue-promise-btn
Quick Start:
- Import and "handshake" plugin with vue
- Use in components
<button v-promise-btn @click="getData">Get Data</button>