mirror of
https://github.com/bartvdbraak/omnidash.git
synced 2025-04-26 15:01:20 +00:00
18 lines
444 B
Svelte
18 lines
444 B
Svelte
<script lang="ts">
|
|
import { Avatar as AvatarPrimitive } from 'bits-ui';
|
|
import { cn } from '$lib/utils';
|
|
|
|
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}
|
|
/>
|