{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "status-page",
  "title": "Status Page",
  "author": "zyx1121 (https://github.com/zyx1121)",
  "description": "A title and the way out, for not found, errors and no access.",
  "registryDependencies": [
    "https://ui.zyx.tw/r/shell.json"
  ],
  "files": [
    {
      "path": "registry/zyx/components/status-page.tsx",
      "content": "import * as React from \"react\"\n\nimport { Command, Cursor } from \"./shell\"\n\n// A page that only says what happened and the way out: not found, an error,\n// no access, signed out. It reads as a shell session: the command that failed\n// (`cd <RequestedPath />` for a 404), the title as its output, the way out,\n// then an idle prompt. Put it in a spotlight page. The title says it all\n// (\"Not found\"); the action is a verb (\"Go home\", \"Retry\") or a few links.\nfunction StatusPage({\n  title,\n  command,\n  action,\n}: {\n  title: string\n  command?: React.ReactNode\n  action?: React.ReactNode\n}) {\n  return (\n    <div data-slot=\"status-page\" className=\"flex flex-col gap-10\">\n      <div className=\"flex flex-col gap-3\">\n        {command && <Command>{command}</Command>}\n        <h1 className=\"text-headline font-medium tracking-tight\">{title}</h1>\n      </div>\n      {action}\n      <Command>\n        <Cursor />\n      </Command>\n    </div>\n  )\n}\n\nexport { StatusPage }\n",
      "type": "registry:component"
    }
  ],
  "meta": {
    "useWhen": "Not found, error and no-access pages: a title and the way out.",
    "notFor": "Empty lists inside a working page; use empty-state.",
    "related": [
      "shell",
      "empty-state"
    ]
  },
  "docs": "Use when: Not found, error and no-access pages: a title and the way out.\nNot for: Empty lists inside a working page; use empty-state.\nGuide: https://ui.zyx.tw/status-page.md",
  "categories": [
    "block",
    "feedback"
  ],
  "type": "registry:block"
}