feat: add Skeleton component for loading placeholders in the code editor

This commit is contained in:
ngc2207 2025-01-11 08:30:27 +08:00
parent d2ce0acfe5
commit 227ae89c03

View File

@ -0,0 +1,15 @@
import { cn } from "@/lib/utils"
function Skeleton({
className,
...props
}: React.HTMLAttributes<HTMLDivElement>) {
return (
<div
className={cn("animate-pulse rounded-md bg-primary/10", className)}
{...props}
/>
)
}
export { Skeleton }