{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "shell-loading",
  "title": "Loading indicator",
  "description": "A status region shown while a page waits on its data.",
  "registryDependencies": [
    "@registrystack/shell-content",
    "@registrystack/shell-page-heading"
  ],
  "files": [
    {
      "path": "shell/loading.tsx",
      "content": "import { useShellContent } from \"@/blocks/shell/shell-content\";\nimport { useStandsAsPageTitle } from \"@/blocks/shell/page-heading\";\n\n/**\n * The one loading indicator a page shows while it has nothing to render yet.\n * With no page heading on the screen it names the screen as its heading one.\n */\nexport function Loading() {\n  const c = useShellContent();\n  const standsAsTitle = useStandsAsPageTitle();\n  return (\n    <div className=\"loading\" role=\"status\">\n      <span className=\"loading-dot\" />\n      <span\n        role={standsAsTitle ? \"heading\" : undefined}\n        aria-level={standsAsTitle ? 1 : undefined}\n      >\n        {c.loading}\n      </span>\n    </div>\n  );\n}\n",
      "type": "registry:block",
      "target": "@components/shell/loading.tsx"
    }
  ],
  "type": "registry:block"
}