← full-stack-fastapi-template  /  frontend/src/components/ui/skeleton.tsx

1
import { cn } from "@/lib/utils"
2
3
function Skeleton({ className, ...props }: React.ComponentProps<"div">) {
4
  return (
5
    <div
6
      data-slot="skeleton"
7
      className={cn("bg-accent animate-pulse rounded-md", className)}
8
      {...props}
9
    />
10
  )
11
}
12
13
export { Skeleton }
14