feat: add skeletons

This commit is contained in:
Li Xin
2025-04-19 11:30:49 +08:00
parent d2478d9d4f
commit ff3fabecf7
2 changed files with 27 additions and 0 deletions

View File

@@ -0,0 +1,13 @@
import { cn } from "~/lib/utils"
function Skeleton({ className, ...props }: React.ComponentProps<"div">) {
return (
<div
data-slot="skeleton"
className={cn("bg-accent animate-pulse rounded-md", className)}
{...props}
/>
)
}
export { Skeleton }