mirror of
https://github.com/fawney19/Aether.git
synced 2026-01-03 16:22:27 +08:00
25 lines
502 B
Vue
25 lines
502 B
Vue
<script setup lang="ts">
|
|
import { AvatarFallback as AvatarFallbackPrimitive } from 'radix-vue'
|
|
import { cn } from '@/lib/utils'
|
|
import { computed } from 'vue'
|
|
|
|
interface Props {
|
|
class?: string
|
|
}
|
|
|
|
const props = defineProps<Props>()
|
|
|
|
const fallbackClass = computed(() =>
|
|
cn(
|
|
'flex h-full w-full items-center justify-center rounded-full bg-muted',
|
|
props.class
|
|
)
|
|
)
|
|
</script>
|
|
|
|
<template>
|
|
<AvatarFallbackPrimitive :class="fallbackClass">
|
|
<slot />
|
|
</AvatarFallbackPrimitive>
|
|
</template>
|