feat(components/ui): add Skeleton component from shadcn/ui

This commit is contained in:
cfngc4594 2025-02-19 11:12:29 +08:00
parent ff38dfc02c
commit baeafb92dd

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 }