{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "loading-overlay",
  "type": "registry:ui",
  "title": "Loading overlay",
  "description": "A translucent overlay that covers its parent with a centered spinner and label while data loads, inheriting the parent radius and announced with role status.",
  "dependencies": [],
  "registryDependencies": [
    "https://ui.minidev.pro/r/spinner.json",
    "utils"
  ],
  "files": [
    {
      "path": "registry/ui/loading-overlay.tsx",
      "type": "registry:ui",
      "target": "components/ui/loading-overlay.tsx",
      "content": "\"use client\"\nimport { cn } from \"@/lib/utils\"\nimport { Spinner } from \"@/components/ui/spinner\"\n\nfunction LoadingOverlay({\n  label = \"Loading\",\n  className,\n}: {\n  label?: string\n  className?: string\n}) {\n  return (\n    <div\n      data-slot=\"loading-overlay\"\n      role=\"status\"\n      aria-label={label}\n      className={cn(\n        \"absolute inset-0 z-10 flex items-center justify-center rounded-[inherit] bg-bg/70\",\n        className\n      )}\n    >\n      <div className=\"flex items-center gap-2 rounded-lg border border-border bg-surface px-3 py-2 text-sm text-fg shadow-highlight\">\n        <Spinner size=\"sm\" />\n        {label}\n      </div>\n    </div>\n  )\n}\nexport { LoadingOverlay }\n"
    }
  ]
}
