Staaarter

Editorial 404 Section Index

An editorial-styled 404: a small eyebrow and status code sit over a hairline rule, above an oversized headline with one accent-highlighted word, followed by a ruled, divided index list of the sections visitors reach for next, each with a title, short description, and arrow.

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 dependencies and any missing npm packages, and installs them straight into your project.

npx shadcn add https://staaarter.com/r/editorial-404-section-index.json

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

Usage

The file also exports error14Demo, 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 { Error14, error14Demo } from "@/components/blocks/error/error14";

export default function Page() {
  return <Error14 {...error14Demo} />;
}

Props

PropTypeDefaultDescription
eyebrowstring"Error"Small label at the left of the hairline rule.
statusCodestring"404"Status code shown at the right of the hairline rule.
headingReactNodeEvery path leads <span className="text-primary">somewhere</span>.Oversized headline. Accepts JSX so one word can be wrapped for the accent-color highlight.
descriptionstring"This one just doesn't exist. Here's where readers usually go next."Short supporting copy under the heading.
sectionsError14Section[]noneRows in the ruled index list of sections.
classNamestringnoneExtra classes for the outer section element.

Types

interface Error14Section {
  title: string;
  description: string;
  href: string;
}

Behavior notes

  • Every row in the index list renders as a real Next.js Link component, but all default to "#" until you supply your own hrefs, nothing is submitted anywhere.