Files
trevstack/client/src/lib/ui/skeleton/skeleton.svelte
2025-05-12 11:27:33 -04:00

19 lines
466 B
Svelte

<script lang="ts">
import type { WithElementRef, WithoutChildren } from "bits-ui";
import type { HTMLAttributes } from "svelte/elements";
import { cn } from "$lib/utils.js";
let {
ref = $bindable(null),
class: className,
...restProps
}: WithoutChildren<WithElementRef<HTMLAttributes<HTMLDivElement>>> = $props();
</script>
<div
bind:this={ref}
data-slot="skeleton"
class={cn("bg-surface animate-pulse rounded-md", className)}
{...restProps}
></div>