Staaarter

Editorial Not Found Split

A calm, editorial not-found page: an error eyebrow, an oversized light-weight headline, and recovery action buttons on the left, beside a hairline-divided list of destinations people usually need instead on the right.

By Staaarter Team
Error
Docs
Live preview

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/editorial-not-found-split.json

Prefer not to use the CLI? Copy the source from the Code toggle above into src/components/blocks/error/error34.tsx instead.

Usage

The file also exports error34Demo, 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 { Error34, error34Demo } from "@/components/blocks/error/error34";

export default function Page() {
  return <Error34 {...error34Demo} />;
}

Props

PropTypeDefaultDescription
eyebrowstring"404 error"Small uppercase label above the headline.
headingstring"We can't find that page"Oversized light-weight headline.
descriptionstringnoneShort supporting copy under the headline.
primaryLabelstring"Back to homepage"Label for the primary recovery button.
primaryHrefstring"/"Link target for the primary recovery button.
secondaryLabelstring"Contact support"Label for the secondary recovery button.
secondaryHrefstring"/support"Link target for the secondary recovery button.
destinationsHeadingstring"Where people usually go instead"Small heading above the destinations column.
destinationsDestination[]noneLikely destinations listed in the right column.
classNamestringnoneExtra classes for the outer section element.

Types

type Destination = { label: string; description?: string; href: string };

Behavior notes

  • This is a fully static server component; both recovery buttons and every destination row render as real Next.js Links via `href`, but nothing is fetched, ranked, or tracked live.