feat: add skeleton loader

This commit is contained in:
2026-09-18 07:10:38 +08:00
parent d9e627cc5f
commit 8aa10d38b1
3 changed files with 55 additions and 5 deletions
+13
View File
@@ -0,0 +1,13 @@
import { cn } from "cn";
function Skeleton({ className, ...props }: React.ComponentProps<"div">) {
return (
<div
data-slot="skeleton"
className={cn("animate-pulse rounded-md bg-background/30", className)}
{...props}
/>
);
}
export { Skeleton };