1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
| <script setup lang="ts">
| import type { HTMLAttributes } from 'vue';
|
| import { cn } from '..\..\..\..\..\base\shared\src\utils';
|
| import { AvatarRoot } from 'reka-ui';
|
| const props = defineProps<{
| class?: HTMLAttributes['class'];
| }>();
| </script>
|
| <template>
| <AvatarRoot
| data-slot="avatar"
| :class="
| cn(
| 'relative flex size-8 shrink-0 overflow-hidden rounded-full',
| props.class,
| )
| "
| >
| <slot></slot>
| </AvatarRoot>
| </template>
|
|