Skip to content
This repository has been archived by the owner on Jul 12, 2023. It is now read-only.

liutkin/vue-loading-wrapper

Repository files navigation

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

Prop Type Required Default Description
loading Boolean false false Toggle animation
pulse Boolean false false Toggle progress pulse animation
text String false "Loading" Text label
tag String false "div" Root HTML element tag
baseClass String false "loading-wrapper" Base CSS class
contentClass String false "" Content CSS class

Slots

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