Files
EZPPLauncher/src/lib/components/ui/avatar/avatar-image.svelte
2024-12-10 23:29:28 +01:00

17 lines
338 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.ImageProps = $props();
</script>
<AvatarPrimitive.Image
bind:ref
class={cn("aspect-square h-full w-full", className)}
{...restProps}
/>