2024-08-12 11:00:25 +02:00
|
|
|
<script lang="ts">
|
2025-01-19 15:41:16 +01:00
|
|
|
import { Avatar as AvatarPrimitive } from 'bits-ui';
|
|
|
|
|
import { cn } from '$lib/utils/style.js';
|
2024-08-12 11:00:25 +02:00
|
|
|
|
|
|
|
|
type $$Props = AvatarPrimitive.FallbackProps;
|
|
|
|
|
|
2025-01-19 15:41:16 +01:00
|
|
|
let className: $$Props['class'] = undefined;
|
2024-08-12 11:00:25 +02:00
|
|
|
export { className as class };
|
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
<AvatarPrimitive.Fallback
|
2025-05-07 16:43:24 +02:00
|
|
|
class={cn('bg-muted flex h-full w-full items-center justify-center rounded-full', className)}
|
2024-08-12 11:00:25 +02:00
|
|
|
{...$$restProps}
|
|
|
|
|
>
|
|
|
|
|
<slot />
|
|
|
|
|
</AvatarPrimitive.Fallback>
|