Add Skeleton UI component from shadcn

This commit is contained in:
Neshura 2024-01-02 02:11:36 +01:00
parent f80d56c057
commit 93954c86ee
Signed by: Neshura
GPG key ID: B6983AAA6B9A7A6C
2 changed files with 21 additions and 0 deletions

View file

@ -0,0 +1,7 @@
import Root from "./skeleton.svelte";
export {
Root,
//
Root as Skeleton
};

View file

@ -0,0 +1,14 @@
<script lang="ts">
import { cn } from "$lib/utils";
import type { HTMLAttributes } from "svelte/elements";
type $$Props = HTMLAttributes<HTMLDivElement>;
let className: $$Props["class"] = undefined;
export { className as class };
</script>
<div
class={cn("animate-pulse rounded-md bg-primary/10", className)}
{...$$restProps}
/>