Files
MediaManager-maxdorninger-1/web/src/lib/components/ui/avatar/avatar-fallback.svelte
2025-12-06 22:39:09 +01:00

17 lines
368 B
Svelte

<script lang="ts">
import { Avatar as AvatarPrimitive } from 'bits-ui';
import { cn } from '$lib/utils.js';
let {
class: className,
ref = $bindable(null),
...restProps
}: AvatarPrimitive.FallbackProps = $props();
</script>
<AvatarPrimitive.Fallback
bind:ref
class={cn('flex size-full items-center justify-center bg-muted', className)}
{...restProps}
/>