mirror of
https://github.com/shadcn-ui/taxonomy
synced 2026-05-24 09:48:32 +00:00
15 lines
331 B
TypeScript
15 lines
331 B
TypeScript
import { cn } from "@/lib/utils"
|
|
|
|
interface SkeletonProps extends React.HTMLAttributes<HTMLDivElement> {}
|
|
|
|
export function Skeleton({ className, ...props }: SkeletonProps) {
|
|
return (
|
|
<div
|
|
className={cn(
|
|
"h-5 w-2/5 animate-pulse rounded-lg bg-slate-100",
|
|
className
|
|
)}
|
|
{...props}
|
|
/>
|
|
)
|
|
}
|