mirror of
https://git.hmsn.ink/kospo/svcm/oa.git
synced 2026-03-20 01:12:30 +09:00
first
This commit is contained in:
26
documentation/loader/v-loader-documentation.md
Normal file
26
documentation/loader/v-loader-documentation.md
Normal file
@@ -0,0 +1,26 @@
|
||||
### 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`.
|
||||
|
||||
<!--code-->
|
||||
|
||||
```vue
|
||||
<script setup lang="ts">
|
||||
const isLoaderActive = ref(false)
|
||||
|
||||
const toggleLoaders = () => {
|
||||
isLoaderActive.value = !isLoaderActive.value
|
||||
}
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<VLoader size="large" :active="isLoaderActive">
|
||||
<!-- content ... --->
|
||||
</VLoader>
|
||||
</template>
|
||||
```
|
||||
|
||||
<!--/code-->
|
||||
Reference in New Issue
Block a user