1<script lang="ts">
2 import { cn, type WithElementRef, type WithoutChildren } from '$lib/components/ui/utils.js';
3 import type { HTMLAttributes } from 'svelte/elements';
4
5 let {
6 ref = $bindable(null),
7 class: className,
8 ...restProps
9 }: WithoutChildren<WithElementRef<HTMLAttributes<HTMLDivElement>>> = $props();
10</script>
11
12<div
13 bind:this={ref}
14 data-slot="skeleton"
15 class={cn('animate-pulse rounded-md bg-accent', className)}
16 {...restProps}
17></div>