2.0.1 ā€¢ Published 4 years ago

vue-loading-wrapper v2.0.1

Weekly downloads
4
License
MIT
Repository
github
Last release
4 years ago

vue-loading-wrapper

showcase

Data loading animation component for VueJS, inspired by video games loading screens.

šŸŽ„ Demo

Install

npm i vue-loading-wrapper
import LoadingWrapper from "vue-loading-wrapper";

export default {
  name: "LoadingWrapper",
  components: {
    LoadingWrapper,
  },
};

Usage

<loading-wrapper :loading="isLoading">Some dynamic content loaded</loading-wrapper>

Props

PropTypeRequiredDefaultDescription
loadingBooleanfalsefalseToggle animation
pulseBooleanfalsefalseToggle progress pulse animation
textStringfalse"Loading"Text label
tagStringfalse"div"Root HTML element tag
baseClassStringfalse"loading-wrapper"Base CSS class
contentClassStringfalse""Content CSS class

Slots

NameDescription
None (default)Content that being displayed once loading flag is removed