flbxcup/resources/js/components/ui/avatar/avatar.svelte
2025-06-23 23:12:40 +02:00

17 lines
388 B
Svelte

<script lang="ts">
import { Avatar as AvatarPrimitive } from "bits-ui";
import { cn } from "@/lib/utils.js";
let {
ref = $bindable(null),
class: className,
...restProps
}: AvatarPrimitive.RootProps = $props();
</script>
<AvatarPrimitive.Root
bind:ref
data-slot="avatar"
class={cn("relative flex size-8 shrink-0 overflow-hidden rounded-full", className)}
{...restProps}
/>