Loading inside a container or full screen for Vue.js
vue-element-loading
Loading inside a container or full screen component for Vue.js
? Install
npm install --save vue-element-loading
or
yarn add vue-element-loading
? Usage
import Vue from 'vue'
import ElementLoading from 'vue-element-loading'
Vue.component('ElementLoading', ElementLoading)
or
import VueElementLoading from 'vue-element-loading'
export default {
components: {
VueElementLoading
}
}
? Example
<vue-element-loading :active="show" spinner="spinner" color="#FF6700"/>
⚙️ Props
Props | Type | Default | Description |
---|---|---|---|
active | Boolean | - | Status for show/hide loading |
spinner | String | spinner | Spinner icon name |
color | String | #ccc | Color of spinner icon |
is-full-screen | Boolean | false | Loader will overlay the full page |