Files
frontend-svelte/src/shared/shadcn/ui/skeleton/skeleton.svelte
Ilia Mashkov 4ba02b5933
Some checks failed
Lint / Lint Code (push) Failing after 7m9s
Test / Svelte Checks (push) Failing after 7m20s
fix: new dprint import format settings
2026-01-02 17:01:59 +03:00

23 lines
494 B
Svelte

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