Terminal 404 Page

A terminal that types out a failed command and a 404 status.

Preview

"use client";

import { NotFoundTerminal } from "@/components/motion/not-found/terminal";

export function NotFoundTerminalPreview() {
  return (
    <div className="w-full">
      <NotFoundTerminal />
    </div>
  );
}

Install

Add it with the shadcn CLI, or copy the source manually.

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

API Reference

className?
string

Classes merged onto the root element.

Default—
code?
string

The big status code.

Default404
title?
string

Heading under the status code. Default: "Page not found"

Default—
description?
string

Supporting line under the heading.

Default—
homeHref?
string

Link for the primary button. Default: "/"

Default—
homeLabel?
string

Text of the primary button. Default: "Back home"

Default—
browseHref?
string

Link for the secondary button. Default: "/components/motion"

Default—
browseLabel?
string

Text of the secondary button. Default: "Browse components"

Default—
labels?
Partial<{ title: string; description: string; homeLabel: string; browseLabel: string; stackedCaption: string; terminalError: string; }>

Override any built-in string. Explicit `title`, `description`, `homeLabel` and `browseLabel` props still win.

Default—

More in 404 / Not Found

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