Files
Aether/frontend/src/components/ui/avatar.vue
2025-12-10 20:52:44 +08:00

22 lines
422 B
Vue

<script setup lang="ts">
import { AvatarRoot } from 'radix-vue'
import { cn } from '@/lib/utils'
import { computed } from 'vue'
interface Props {
class?: string
}
const props = defineProps<Props>()
const avatarClass = computed(() =>
cn('relative flex h-10 w-10 shrink-0 overflow-hidden rounded-full', props.class)
)
</script>
<template>
<AvatarRoot :class="avatarClass">
<slot />
</AvatarRoot>
</template>