Skeleton.vue 365 B

1234567891011121314151617
  1. <script setup lang="ts">
  2. import type { HTMLAttributes } from "vue"
  3. import { cn } from '@/Packages/Shadcn/Lib/utils'
  4. interface SkeletonProps {
  5. class?: HTMLAttributes["class"]
  6. }
  7. const props = defineProps<SkeletonProps>()
  8. </script>
  9. <template>
  10. <div
  11. data-slot="skeleton"
  12. :class="cn('animate-pulse rounded-md bg-primary/10', props.class)"
  13. />
  14. </template>