Skip to content

Commit

Permalink
➕ Add shadcn skeleton component
Browse files Browse the repository at this point in the history
  • Loading branch information
Xen0Xys committed Jun 17, 2024
1 parent e8125de commit e8b8259
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
14 changes: 14 additions & 0 deletions components/ui/skeleton/Skeleton.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<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-muted', props.class)" />
</template>
1 change: 1 addition & 0 deletions components/ui/skeleton/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export { default as Skeleton } from './Skeleton.vue'

0 comments on commit e8b8259

Please sign in to comment.