{ "$schema": "https://ui.shadcn.com/schema/registry-item.json", "name": "error-404-page", "title": "404 Error Page", "description": "404 not found error page with large headline, message, search form, and dashboard link.", "registryDependencies": [ "https://raw.githubusercontent.com/dnachavez/adminlte-next/master/public/r/adminlte-theme.json", "https://raw.githubusercontent.com/dnachavez/adminlte-next/master/public/r/adminlte-form-control.json" ], "files": [ { "path": "registry/new-york/error-404-page/blocks/error-404-page.tsx", "content": "\"use client\"\n\nimport * as React from \"react\"\nimport { cn } from \"@/registry/new-york/adminlte-theme/lib/cn\"\n\ninterface Error404PageProps extends React.HTMLAttributes {\n headline?: string\n message?: string\n searchPlaceholder?: string\n onSearch?: (query: string) => void\n homeHref?: string\n}\n\nfunction Error404Page({\n className,\n headline = \"404\",\n message = \"Oops! Page not found.\",\n searchPlaceholder = \"Search\",\n onSearch,\n homeHref = \"/\",\n ...props\n}: Error404PageProps) {\n const [query, setQuery] = React.useState(\"\")\n\n return (\n \n
\n
\n

\n {headline}\n

\n\n

\n {message}\n

\n\n

\n We could not find the page you were looking for.\n Meanwhile, you may{\" \"}\n \n return to dashboard\n \n .\n

\n\n {\n e.preventDefault()\n onSearch?.(query)\n }}\n >\n
\n setQuery(e.target.value)}\n />\n \n 🔍\n \n
\n \n
\n
\n \n )\n}\n\nexport { Error404Page }\nexport type { Error404PageProps }\n", "type": "registry:component" } ], "type": "registry:block" }