shadcn-vue/apps/www/registry/new-york/ui/skeleton/Skeleton.vue
2024-11-21 11:52:31 +08:00

15 lines
318 B
Vue

<script setup lang="ts">
import type { HTMLAttributes } from 'vue'
import { cn } from '@/lib/utils'
interface SkeletonProps {
class?: HTMLAttributes['class']
}
const props = defineProps<SkeletonProps>()
</script>
<template>
<div :class="cn('animate-pulse rounded-md bg-primary/10', props.class)" />
</template>