{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "state-error",
  "type": "registry:component",
  "title": "State Error",
  "description": "Canonical error state with optional retry action.",
  "dependencies": [
    "lucide-react"
  ],
  "registryDependencies": [
    "alert",
    "button"
  ],
  "files": [
    {
      "path": "registry/blocks/state/state-error.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\";\nimport { AlertCircle } from \"lucide-react\";\n\nimport { Alert, AlertDescription, AlertTitle } from \"@/components/ui/alert\";\nimport { Button } from \"@/components/ui/button\";\n\nexport interface StateErrorProps {\n  title?: string;\n  description?: string;\n  retryLabel?: string;\n  onRetry?: () => void;\n  action?: React.ReactNode;\n}\n\nexport function StateError({\n  title = \"Something went wrong\",\n  description = \"The request could not be completed.\",\n  retryLabel = \"Try again\",\n  onRetry,\n  action,\n}: StateErrorProps) {\n  return (\n    <Alert variant=\"destructive\">\n      <AlertCircle className=\"size-4\" aria-hidden=\"true\" />\n      <AlertTitle>{title}</AlertTitle>\n      <AlertDescription>\n        <div className=\"space-y-3\">\n          <p>{description}</p>\n          {onRetry || action ? (\n            <div className=\"flex flex-wrap gap-2\">\n              {onRetry ? (\n                <Button type=\"button\" variant=\"outline\" size=\"sm\" onClick={onRetry}>\n                  {retryLabel}\n                </Button>\n              ) : null}\n              {action}\n            </div>\n          ) : null}\n        </div>\n      </AlertDescription>\n    </Alert>\n  );\n}\n\n",
      "type": "registry:component",
      "target": "components/m8-ui/state-error.tsx"
    }
  ]
}
