2024-11-30 00:58:04 +01:00
|
|
|
<script setup lang="ts">
|
2025-03-28 01:16:24 +01:00
|
|
|
import { AvatarRoot } from "reka-ui";
|
2024-11-30 00:58:04 +01:00
|
|
|
import type { HTMLAttributes } from "vue";
|
2025-06-26 22:39:02 +02:00
|
|
|
import { cn } from "@/lib/utils";
|
2024-11-30 00:58:04 +01:00
|
|
|
|
2025-04-10 13:55:56 +02:00
|
|
|
const props = defineProps<{
|
|
|
|
|
class?: HTMLAttributes["class"];
|
|
|
|
|
}>();
|
2024-11-30 00:58:04 +01:00
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
<template>
|
2025-04-10 13:55:56 +02:00
|
|
|
<AvatarRoot
|
|
|
|
|
data-slot="avatar"
|
|
|
|
|
:class="cn('relative flex size-8 shrink-0 overflow-hidden rounded-full', props.class)"
|
|
|
|
|
>
|
2024-11-30 00:58:04 +01:00
|
|
|
<slot />
|
|
|
|
|
</AvatarRoot>
|
|
|
|
|
</template>
|