404 / Not Found

Five ready 404 pages for Next.js or any React app: glitching digits, digits that lean toward the cursor, a spotlight reveal, a card stack that fans out and a terminal that types the error, each with home and browse links.

Glitch

glitch.tsx

The 404 cycles through random characters before settling, and hovering splits it into offset color channels.

404 / Not Found Glitch preview width

Install

$ bunx --bun shadcn add @karaui/not-found-glitch
@karaui not found? Add it to components.json
{
  "registries": {
    "@karaui": "https://karaui.kamisama-v0.my.id/r/{name}.json"
  }
}

@karaui is in shadcn's public registry directory, so the latest CLI needs no setup. On an older CLI, merge this into the existing file once and every @karaui/… install resolves.

API Reference

className?
string
—
code?
string

The big status code.

404
title?
string
Page not found
description?
string
The page you are looking for moved, vanished, or never existed.
homeHref?
string
—
homeLabel?
string
—
browseHref?
string
—
browseLabel?
string
—

Magnetic

magnetic.tsx

Every digit is pulled toward the pointer by the Magnetic wrapper, then settles back when it leaves.

404 / Not Found Magnetic preview width

Install

$ bunx --bun shadcn add @karaui/not-found-magnetic

API Reference

className?
string
—
code?
string

The big status code.

404
title?
string
Page not found
description?
string
The page you are looking for moved, vanished, or never existed.
homeHref?
string
—
homeLabel?
string
—
browseHref?
string
—
browseLabel?
string
—

Spotlight

spotlight.tsx

A dim panel where a light that follows your cursor brings the error code up to full brightness.

404 / Not Found Spotlight preview width

Install

$ bunx --bun shadcn add @karaui/not-found-spotlight

API Reference

className?
string
—
code?
string

The big status code.

404
title?
string
Page not found
description?
string
The page you are looking for moved, vanished, or never existed.
homeHref?
string
—
homeLabel?
string
—
browseHref?
string
—
browseLabel?
string
—

Stacked

stacked.tsx

An error card resting on a hidden pile that springs open into a fan when hovered.

404 / Not Found Stacked preview width

Install

$ bunx --bun shadcn add @karaui/not-found-stacked

API Reference

className?
string
—
code?
string

The big status code.

404
title?
string
Page not found
description?
string
The page you are looking for moved, vanished, or never existed.
homeHref?
string
—
homeLabel?
string
—
browseHref?
string
—
browseLabel?
string
—

Terminal

terminal.tsx

A terminal window types out a cd into a missing path, prints a 404 and leaves a blinking cursor.

404 / Not Found Terminal preview width

Install

$ bunx --bun shadcn add @karaui/not-found-terminal

API Reference

className?
string
—
code?
string

The big status code.

404
title?
string
Page not found
description?
string
The page you are looking for moved, vanished, or never existed.
homeHref?
string
—
homeLabel?
string
—
browseHref?
string
—
browseLabel?
string
—

Keep in mind

Some components on this site are inspired by or recreated from existing work across the web. I'm not here to take credit; just to learn, experiment, and sometimes push things a bit further. If something looks familiar and I forgot to mention you, reach out and I'll fix that right away.

Updated