feat : ajout loader skeleton
This commit is contained in:
22
frontend/components/ui/UiSkeletonBlock.vue
Normal file
22
frontend/components/ui/UiSkeletonBlock.vue
Normal file
@@ -0,0 +1,22 @@
|
||||
<template>
|
||||
<div
|
||||
:class="['animate-pulse', rounded, customClass]"
|
||||
:style="{ width, height, background }"
|
||||
/>
|
||||
</template>
|
||||
|
||||
<script setup lang="ts">
|
||||
withDefaults(defineProps<{
|
||||
width?: string
|
||||
height?: string
|
||||
rounded?: string
|
||||
background?: string
|
||||
customClass?: string
|
||||
}>(), {
|
||||
width: '50%',
|
||||
height: '1rem',
|
||||
rounded: 'rounded-md',
|
||||
background: '#e5e7eb',
|
||||
customClass: ''
|
||||
})
|
||||
</script>
|
||||
Reference in New Issue
Block a user