Skip to content
This repository was archived by the owner on Apr 29, 2023. It is now read-only.

Custom full overlay loading with spinner for Vue. Select light or dark overlay and insert your spinner.

License

Notifications You must be signed in to change notification settings

ikloster03/vue-custom-loading

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Vue Custom Loading

Custom full overlay loading with spinner for Vue. Select light or dark overlay and insert your spinner.

<template>
    <Loading :show="show"></Loading>
</template>
<script>    
    import Loading from 'vue-custom-loading';
    
    export default {
      components: {
        Loading
      },
       data(){
           return {
               show: false,
           }
       }
    }
</script>
<style scoped>

</style>

Install

NPM

npm install vue-custom-loading --save

YARN

yarn add vue-custom-loading

Webpack

Command Options
dev webpack-dev-server --env development
build static build

Examples

Alt Text

vue-custom-loading example

Settings

Option Type Default Description
show Boolean false Show or hide loader
overlay String 'light' Color of overlay: 'light', 'dark' or 'none'

Custom spinner

Example of custom loader (spinner).

<template>
    <Loading 
        :show="show"
        :overlay="overlay"
    >
    <div slot="loader">
        <div class="special-loader-style">Loading ...</div>
    <div>
    </Loading>
</template>
<script>    
    import Loading from 'vue-custom-loading';
    
    export default {
      components: {
        Loading
      },
       data(){
           return {
               show: false,
               overlay: 'dark',
           }
       }
    }
</script>
<style scoped>
    .special-loader-style {
        color: #fff;
    }
</style>

You can add your own loader (spinner) in slot 'loader'. Although you can add loader's styles in tag style.

Contact me

Copyright (c) 2017 Monastyrev Ivan ikloster@yandex.ru. Licensed under the MIT license.

About

Custom full overlay loading with spinner for Vue. Select light or dark overlay and insert your spinner.

Resources

License

Stars

Watchers

Forks

Packages

No packages published