20 lines
462 B
Svelte
20 lines
462 B
Svelte
<script lang="ts">
|
|||
|
|
import { Avatar as AvatarPrimitive } from 'bits-ui';
|
||
|
|
import { cn } from '../../tools';
|
||
|
|
|
||
|
|
let {
|
||
|
|
ref = $bindable(null),
|
||
|
|
loadingStatus = $bindable('loading'),
|
||
|
|
class: className,
|
||
|
|
...restProps
|
||
|
|
}: AvatarPrimitive.RootProps = $props();
|
||
|
|
</script>
|
||
|
|
|
||
|
|
<AvatarPrimitive.Root
|
||
|
|
bind:ref
|
||
|
|
bind:loadingStatus
|
||
|
|
data-slot="avatar"
|
||
|
|
class={cn('relative flex size-8 shrink-0 overflow-hidden rounded-full', className)}
|
||
|
|
{...restProps}
|
||
|
|
/>
|