feat(Skeleton): new component

This commit is contained in:
Benjamin Canac
2024-03-12 18:22:55 +01:00
parent 4b3a9855ac
commit e2fb25309f
7 changed files with 58 additions and 1 deletions

View File

@@ -5,7 +5,7 @@ useHead({
}
})
const components = ['avatar', 'badge', 'button', 'collapsible', 'kbd', 'popover', 'tooltip']
const components = ['avatar', 'badge', 'button', 'collapsible', 'kbd', 'popover', 'skeleton', 'tooltip']
</script>
<template>

View File

@@ -0,0 +1,10 @@
<template>
<div class="flex items-center gap-4">
<USkeleton class="h-12 w-12 rounded-full" />
<div class="space-y-2">
<USkeleton class="h-4 w-[250px]" />
<USkeleton class="h-4 w-[200px]" />
</div>
</div>
</template>