shadcn-vue/apps/www/src/content/docs/components/skeleton.md
2024-03-05 14:37:35 +03:30

673 B

title description
Skeleton Use to show a placeholder while content is loading.

Installation

npx shadcn-vue@latest add skeleton

<template #Manual>

Copy and paste the following code into your project

<<< @/lib/registry/default/ui/skeleton/Skeleton.vue

Usage

<script setup lang="ts">
import { Skeleton } from '@/components/ui/skeleton'
</script>

<template>
  <Skeleton class="w-[100px] h-5 rounded-full" />
</template>

Examples

Card