{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "not-found",
  "title": "Not Found",
  "description": "A 404 page section with a large decorative error code, a page heading, a description, an optional search slot and actions.",
  "registryDependencies": [
    "@corsair-ui/utils",
    "@corsair-ui/button"
  ],
  "files": [
    {
      "path": "registry/default/components/blocks/not-found.tsx",
      "content": "import type { ComponentProps, ReactNode } from \"react\";\n\nimport { cn } from \"@/registry/default/lib/utils\";\nimport { Button } from \"@/registry/default/ui/button\";\n\ninterface NotFoundProps extends Omit<ComponentProps<\"section\">, \"title\"> {\n  /** The large error code above the title. It is decorative; pass `null` to hide it. */\n  code?: ReactNode;\n  /** The page heading, rendered as an `<h1>`. */\n  title?: ReactNode;\n  description?: ReactNode;\n  /** Buttons or links. Defaults to \"Go home\" and \"Contact support\"; pass `null` to hide them. */\n  actions?: ReactNode;\n  /** Optional slot between the description and the actions, such as a search form. */\n  search?: ReactNode;\n}\n\nconst defaultActions = (\n  <>\n    <Button asChild size=\"lg\">\n      <a href=\"/\">Go home</a>\n    </Button>\n    <Button asChild size=\"lg\" variant=\"outline\">\n      <a href=\"#contact\">Contact support</a>\n    </Button>\n  </>\n);\n\n/**\n * A \"page not found\" section: a large error code, the page title, a short\n * description, an optional `search` slot and actions, centred.\n * `<NotFound />` renders a complete 404 example.\n *\n * Accessibility: the code (\"404\") is decorative and hidden from screen\n * readers with `aria-hidden`; the real heading is the `title` `<h1>`\n * (\"Page not found\"), so assistive tech hears a meaningful page title.\n * The default actions are links styled as buttons, reachable with Tab.\n * Nothing animates. It is a server component: no client code.\n *\n * @example\n * <NotFound\n *   code=\"410\"\n *   title=\"This page is gone\"\n *   description=\"The project was archived.\"\n *   actions={\n *     <Button asChild>\n *       <a href=\"/projects\">All projects</a>\n *     </Button>\n *   }\n * />\n */\nfunction NotFound({\n  code = \"404\",\n  title = \"Page not found\",\n  description = \"Sorry, we couldn't find the page you're looking for. It may have been moved or deleted.\",\n  actions = defaultActions,\n  search,\n  className,\n  ...props\n}: NotFoundProps) {\n  return (\n    <section data-slot=\"not-found\" className={cn(\"py-16 sm:py-24\", className)} {...props}>\n      <div\n        data-slot=\"not-found-container\"\n        className=\"mx-auto flex w-full max-w-6xl flex-col items-center px-4 text-center sm:px-6\"\n      >\n        {code != null ? (\n          <p\n            aria-hidden=\"true\"\n            data-slot=\"not-found-code\"\n            className=\"text-primary text-7xl leading-none font-bold tracking-tight sm:text-9xl\"\n          >\n            {code}\n          </p>\n        ) : null}\n        <h1\n          data-slot=\"not-found-title\"\n          className={cn(\n            \"max-w-2xl text-3xl font-semibold tracking-tight text-balance sm:text-4xl\",\n            code != null && \"mt-6\"\n          )}\n        >\n          {title}\n        </h1>\n        {description ? (\n          <p\n            data-slot=\"not-found-description\"\n            className=\"text-muted-foreground mt-4 max-w-xl text-lg text-pretty\"\n          >\n            {description}\n          </p>\n        ) : null}\n        {search ? (\n          <div data-slot=\"not-found-search\" className=\"mt-8 w-full max-w-md\">\n            {search}\n          </div>\n        ) : null}\n        {actions ? (\n          <div\n            data-slot=\"not-found-actions\"\n            className=\"mt-10 flex flex-wrap items-center justify-center gap-3\"\n          >\n            {actions}\n          </div>\n        ) : null}\n      </div>\n    </section>\n  );\n}\n\nexport { NotFound, type NotFoundProps };\n",
      "type": "registry:component"
    }
  ],
  "type": "registry:block"
}