1.0.11 • Published 2 years ago
simple-spin-loader v1.0.11
SpinLoader
Simple SpinLoader pure css
see example on Stackblitz
Installation
npm i spin-loader
or
yarn add spin-loader
global Install
import SpinLoader from 'spin-loader'
import "spin-loader/dist/style.css"
let app = createApp(App)
app.use(SpinLoader)
app.mount('#app')
local Install
<script setup lang="ts">
import {SpinLoader} from 'spin-loader'
</script>
<template>
<spin-loader :isOpen="true"></spin-loader>
</template>
Properties
Currently only one property
isOpen
define to true
bye default
to close the Preload spin loader layer you need to set :isOpen
to false
<spin-loader :isOpen='boolean'></spin-loader>