{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "state-loading",
  "type": "registry:component",
  "title": "State Loading",
  "description": "Canonical loading state for M8 table and page surfaces.",
  "registryDependencies": [
    "skeleton"
  ],
  "files": [
    {
      "path": "registry/blocks/state/state-loading.tsx",
      "content": "\"use client\";\n// astro-ui-m8-skin-version: 1.5.3 (A-C6 — run `npx astro-ui-m8-skin-lock` to compare against your installed @mano8/astro-ui-m8)\n\nimport * as React from \"react\";\n\nimport { Skeleton } from \"@/components/ui/skeleton\";\n\nexport interface StateLoadingProps {\n  title?: string;\n  description?: string;\n  rows?: number;\n}\n\nexport function StateLoading({\n  title = \"Loading\",\n  description = \"Fetching the latest data.\",\n  rows = 3,\n}: StateLoadingProps) {\n  const skeletonRows = Array.from({ length: Math.max(1, rows) }, (_, index) => index);\n\n  return (\n    <div\n      role=\"status\"\n      aria-live=\"polite\"\n      className=\"rounded-md border bg-card p-4 text-card-foreground\"\n    >\n      <div className=\"space-y-2\">\n        <p className=\"text-sm font-medium\">{title}</p>\n        <p className=\"text-sm text-muted-foreground\">{description}</p>\n      </div>\n      <div className=\"mt-4 space-y-3\">\n        {skeletonRows.map((row) => (\n          <Skeleton key={row} className=\"h-8 w-full\" />\n        ))}\n      </div>\n    </div>\n  );\n}\n\n",
      "type": "registry:component",
      "target": "components/m8-ui/state-loading.tsx"
    }
  ]
}
