mirror of
https://git.hmsn.ink/kospo/svcm/oa.git
synced 2026-03-20 06:03:39 +09:00
596 B
596 B
VLoader
Vuero ships with a dead simple and versatile <VLoader /> component.
This loader is mostly CSS based and gets activated by passing a true value
to the active prop. You can change the loader size using the size prop.
4 sizes are available: small, default, large and xl.
<script setup lang="ts">
const isLoaderActive = ref(false)
const toggleLoaders = () => {
isLoaderActive.value = !isLoaderActive.value
}
</script>
<template>
<VLoader size="large" :active="isLoaderActive">
<!-- content ... --->
</VLoader>
</template>