Typographic 404 Index
Monochrome 404 built on oversized display type: a parenthetical eyebrow, a large display headline with one muted, lighter-weight emphasis clause, a pill-shaped CTA back to the homepage, and a ruled, divided index listing every major site section as a title-plus-arrow row.
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/typographic-404-index.jsonPrefer not to use the CLI? Copy the source from the Code toggle above into src/components/blocks/error/error19.tsx instead.
Usage
The file also exports error19Demo, 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 { Error19, error19Demo } from "@/components/blocks/error/error19"; export default function Page() { return <Error19 {...error19Demo} />; }
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| eyebrow | string | "(error)" | Small parenthetical label above the headline. |
| heading | ReactNode | none | Display headline; pass a muted/lighter-weight span for the emphasis clause. |
| ctaLabel | string | "Back to homepage" | Label on the pill-shaped CTA button. |
| ctaHref | string | "/" | Link target for the CTA button. |
| sections | IndexSection[] | none | Major site sections listed in the ruled index below the CTA. |
| className | string | none | Extra classes for the outer section element. |
Types
type IndexSection = { title: string; href: string };
Behavior notes
- Entirely static/server-rendered: the CTA and every index row are plain next/link navigation via Button's render prop, no client state.
- The emphasis clause inside the headline is authored directly in the heading prop's JSX (a muted, font-normal span), not computed by the component.
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.