Skip to content

MazFullscreenLoader

MazFullscreenLoader is a standalone component

Basic usage

vue
<script lang="ts" setup>
import { MazBtn, MazFullscreenLoader } from 'maz-ui/components'

import { ref } from 'vue'

const showLoader = ref(false)
</script>

<template>
  <MazFullscreenLoader v-if="showLoader" @click="showLoader = false">
    <p>
      Loading...
    </p>
    <p>
      (click to hide loader)
    </p>
  </MazFullscreenLoader>

  <MazBtn @click="showLoader = true">
    Show loader
  </MazBtn>
</template>

Props

NameDescriptionTypeRequired
colorThe color of the spinnerMazColorNo
sizeThe size of the spinnerstringNo
teleport-selectorThe selector to teleport the loaderstringNo

Slots

NameDescriptionBindings
default