skeleton.tsx 289 B

123456789101112131415
  1. import type { HTMLAttributes } from "react";
  2. import { cn } from "@/lib/utils";
  3. export function Skeleton({
  4. className,
  5. ...props
  6. }: HTMLAttributes<HTMLDivElement>) {
  7. return (
  8. <div
  9. className={cn("animate-pulse rounded-md bg-muted", className)}
  10. {...props}
  11. />
  12. );
  13. }