feat: add skeleton loader

This commit is contained in:
2024-01-11 03:46:26 +00:00
parent 30f63454e3
commit 66e763eb1c
2 changed files with 23 additions and 8 deletions
+15
View File
@@ -0,0 +1,15 @@
import { cn } from "@/utility/utils"
function Skeleton({
className,
...props
}: React.HTMLAttributes<HTMLDivElement>) {
return (
<div
className={cn("animate-pulse rounded-md bg-slate-100 dark:bg-slate-800", className)}
{...props}
/>
)
}
export { Skeleton }