mirror of
https://github.com/fawney19/Aether.git
synced 2026-01-05 17:22:28 +08:00
19 lines
325 B
Vue
19 lines
325 B
Vue
|
|
<script setup lang="ts">
|
||
|
|
import { cn } from '@/lib/utils'
|
||
|
|
import { computed } from 'vue'
|
||
|
|
|
||
|
|
interface Props {
|
||
|
|
class?: string
|
||
|
|
}
|
||
|
|
|
||
|
|
const props = defineProps<Props>()
|
||
|
|
|
||
|
|
const skeletonClass = computed(() =>
|
||
|
|
cn('animate-pulse rounded-md bg-muted', props.class)
|
||
|
|
)
|
||
|
|
</script>
|
||
|
|
|
||
|
|
<template>
|
||
|
|
<div :class="skeletonClass" />
|
||
|
|
</template>
|