Component packs › Detour › 404 Page

404 Page

The road ends at barrier boards; a car drives up, brakes and turns round in front of them.

404 Page is an error page from Detour, a component pack with 6 error and empty pages: Error and empty pages, each a small live street seen from above with one honest way forward. Price: $2 for the whole pack.

Built with: baked lit street, car sprites with lamps, scripted drive on a path.

Code: React and Next.js (TypeScript), Vue 3, plain HTML/CSS/JS, Tailwind CSS v4 and Motion (motion.dev). No npm packages needed. Keyboard accessible, with a reduced-motion version, in dark and light.

404 Page props

PropTypeDefaultDescription
homestring"/"Where "Go to the home page" leads. Default "/".
onHome() => void
onBack() => void
previewbooleanShowcase mode: the buttons say where they would go instead of leaving the page.
widthnumber420Width in px. Default 420.
darkboolean

Methods on the ref

Use it in React

import NotFound from './NotFound';

<NotFound />

The Vue, HTML, Next.js, Tailwind and Motion versions take the same options.

More in Detour

Good for: 404 and empty states.