Oversized Numeral 404
A monochrome 404 screen led by the status code set as an oversized display numeral, with a hairline rule below it splitting the content into two columns that stack on mobile: a statement and pill CTA on one side, an explanation and a couple of display-type text links on the other.
Docs
Installation
A real shadcn registry command, not a copy-paste stand-in: it fetches this block plus its button dependencies and any missing npm packages, and installs them straight into your project.
npx shadcn add https://staaarter.com/r/oversized-numeral-404.jsonPrefer not to use the CLI? Copy the source from the Code toggle above into src/components/blocks/error/error29.tsx instead.
Usage
The file also exports error29Demo, the exact props behind the preview above. Spread it to get a working section in one line, then replace it with your own data.
import { Error29, error29Demo } from "@/components/blocks/error/error29"; export default function Page() { return <Error29 {...error29Demo} />; }
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| statusCode | string | none | Oversized numeral shown at the top, e.g. "404". |
| heading | string | none | Headline in the left column. |
| description | string | none | Short copy under the headline in the left column. |
| ctaLabel | string | none | Label for the pill-shaped CTA button. |
| ctaHref | string | none | Href for the pill-shaped CTA button. |
| explanation | string | none | Copy shown at the top of the right column. |
| links | DisplayLink[] | none | Display-type text links listed in the right column. |
| className | string | none | Extra classes for the outer section element. |
Types
interface DisplayLink { label: string; href: string; }
Behavior notes
- Fully static server component: no client state, hooks, or interactivity of any kind.
- The CTA button and every link in the right-hand list render as real Next.js Link components via the Button's render prop, but none point anywhere but "#" in the demo.
- The two columns are a single grid that becomes two columns with a divider at the sm breakpoint and stacks full-width on mobile, matching the brief's stacking requirement.
More Error Blocks
View all →centered-404-message
Centered 404 Message
Minimal centered 404 with two CTAs and a divided row of popular page links.
404-with-site-search
404 With Site Search
404 screen with a working search box and a bordered list of suggested pages.
split-404-with-image
Split 404 With Image
Two-column 404 with the message on one side and a full-bleed photo that scales on hover on the other.
404-with-destination-cards
404 With Destination Cards
404 screen with a grid of icon destination cards plus fallback CTA buttons.
404-support-panel
404 Support Panel
Card-style 404 echoing the requested URL, with a real back button and a support/status link row.
inline-404-line
Inline 404 Line
The smallest possible 404: code and message on one divided line with one button underneath.