23 lines
540 B
TypeScript
Raw Normal View History

/**
* Skeleton now powered by shadcn/ui
*
* Uses the standard shadcn animate-pulse pattern instead of the custom
* cp-skeleton-shimmer animation.
*/
2026-01-15 11:30:29 +09:00
import { cn } from "@/shared/utils";
interface SkeletonProps extends React.ComponentProps<"div"> {
2026-01-15 11:30:29 +09:00
animate?: boolean;
}
export function Skeleton({ className, animate = true, ...props }: SkeletonProps) {
2026-01-15 11:30:29 +09:00
return (
<div
data-slot="skeleton"
className={cn("rounded-md", animate ? "animate-pulse bg-accent" : "bg-muted", className)}
{...props}
/>
2026-01-15 11:30:29 +09:00
);
}