156
A 404 with a compass that dithers between headings until you move your mouse or start searching, plus a did-you-mean fix for the typo, inline search and popular links.
aka404·not found·error page
Run this in any project set up for the shadcn CLI. It copies the Not Found source into your components folder, so the code is yours to change.
npx shadcn@latest add https://devl.dev/r/not-found.jsonImport it and render it. Every prop has a typed default, so it works straight away, and you pass your own data when you’re ready.
import { NotFound } from "@/components/not-found";
export default function Page() {
return <NotFound />;
}A free React block in the Content collection, written in TypeScript with Tailwind CSS on coss ui. MIT licensed.
Read from the Not Found source. Everything is optional unless it says required.
| Prop | Type | Default |
|---|---|---|
| path | string | "/docs/webhooks/retires" |
| pages | NotFoundPage[] | [] |
| popular | NotFoundLink[] | [] |
| homeHref | string | "/" |
| onNavigate | (href: string) => void | — |
| onReport | (path: string) => void | — |
| className | string | — |