mirror of
https://github.com/prowler-cloud/prowler.git
synced 2026-06-10 21:42:29 +00:00
753a4eda62
- Add reusable shadcn skeleton scanner and reveal primitives - Wrap page-level loading states with skeleton content handoffs - Document skeleton usage through a project skill
29 lines
699 B
TypeScript
29 lines
699 B
TypeScript
import { ReactNode } from "react";
|
|
|
|
import { cn } from "@/lib/utils";
|
|
|
|
interface SkeletonContentRevealProps {
|
|
children: ReactNode;
|
|
className?: string;
|
|
}
|
|
|
|
function SkeletonContentReveal({
|
|
children,
|
|
className,
|
|
}: SkeletonContentRevealProps) {
|
|
return (
|
|
<div
|
|
data-testid="skeleton-content-reveal"
|
|
data-motion="skeleton-content-handoff"
|
|
className={cn(
|
|
"translate-y-0 opacity-100 transition-[opacity,transform] duration-700 ease-[cubic-bezier(0.16,1,0.3,1)] motion-reduce:transform-none motion-reduce:transition-none starting:translate-y-3 starting:opacity-0",
|
|
className,
|
|
)}
|
|
>
|
|
{children}
|
|
</div>
|
|
);
|
|
}
|
|
|
|
export { SkeletonContentReveal };
|