mirror of
https://github.com/pocket-id/pocket-id.git
synced 2025-12-21 12:35:24 +03:00
19 lines
453 B
Svelte
19 lines
453 B
Svelte
|
|
<script lang="ts">
|
||
|
|
import { Avatar as AvatarPrimitive } from "bits-ui";
|
||
|
|
import { cn } from "$lib/utils/style.js";
|
||
|
|
|
||
|
|
type $$Props = AvatarPrimitive.ImageProps;
|
||
|
|
|
||
|
|
let className: $$Props["class"] = undefined;
|
||
|
|
export let src: $$Props["src"] = undefined;
|
||
|
|
export let alt: $$Props["alt"] = undefined;
|
||
|
|
export { className as class };
|
||
|
|
</script>
|
||
|
|
|
||
|
|
<AvatarPrimitive.Image
|
||
|
|
{src}
|
||
|
|
{alt}
|
||
|
|
class={cn("aspect-square h-full w-full", className)}
|
||
|
|
{...$$restProps}
|
||
|
|
/>
|