Missing Piece With Archive SearchPRO

A not-found page for a publication, offering a search field as the first action and the month's most read pieces underneath, with a line committing to link permanence.

A not-found page for a publication, offering a search field as the first action and the month's most read pieces underneath, with a line committing to link permanence.

Upgrade to Pro

Pro blocks install through the shadcn CLI with your license key and ship their full source. Docs and live previews stay open to everyone, so you can read every block's details first.

Upgrade Now

Installation

Swap YOUR_EMAIL and YOUR_KEY for the email and license key on your account. Find your license key on your account page.

Radix flavor

bash
npx shadcn add "https://ui.beste.co/r/error38?email=YOUR_EMAIL&license_key=YOUR_KEY"

Base UI flavor

bash
npx shadcn add "https://ui.beste.co/r-base/error38?email=YOUR_EMAIL&license_key=YOUR_KEY"

This installs the block to components/beste/block/error38.tsx, the badge6 component used for the code marker, and the shadcn/ui input and button primitives behind the search row.

Quick start

The installed file exports error38Demo alongside the block: the exact props behind the preview above. Spread it to get a working not-found page in one line.

tsx
import { Error38, error38Demo } from "@/components/beste/block/error38";

export default function NotFound() {
  return <Error38 {...error38Demo} />;
}

Then replace the demo with your own props. Written out, a trimmed setup looks like this:

tsx
import { Error38 } from "@/components/beste/block/error38";

export default function NotFound() {
  return (
    <Error38
      code="404"
      heading="This piece is not at this address"
      description="Links here are meant to last, so this is either a typo or something we moved."
      placeholder="Search for what you were reading"
      submitLabel="Search"
      popularLabel="Most read this month"
      popular={[
        { title: "Writing an estimate you can defend", href: "/essays/estimates" },
        { title: "Saying no in one paragraph", href: "/essays/no" },
      ]}
      note="Nothing published here has ever been deleted."
    />
  );
}

Props

PropTypeDefaultDescription
codestringStatus code, rendered as the Badge6 label
headingstringWhat went wrong, in words
descriptionstringWhy it might have happened
placeholderstringPlaceholder in the search field
submitLabelstringLabel on the submit button
popularLabelstringLabel above the fallback links
popularPopularPiece[][]Somewhere to go instead
notestringClosing line about link permanence
classNamestringExtra classes for the outer section
ts
type PopularPiece = {
  title: string;
  href: string;
};

Behavior notes

More Error blocks

View all Error
PRO

error36

Not Found With Search

A not-found page that offers a way forward rather than a way back, pairing an oversized light heading with an image tile floating a live search panel and a two-column hairline list of likely destinations.

FREE

error2

404 With Site Search

Search-first 404 page: a controlled search field with a submit handler, plus a bordered list of suggested pages with titles, descriptions, and hover arrows.

PRO

error33

Retired Page Record

Monochrome page for deliberately removed content: a display headline, a ruled record of when it was published, retired and why, then a pill link to the replacement beside an archive link.

PRO

error12

404 With Popular Articles

Blog 404 that turns a dead post URL into reading: centered messaging above a three-up article grid with cover images, category badges, dates, and read times.

FREE

error9

404 Did You Mean

Left-aligned 404 for documentation and marketing sites: the requested path is shown struck through in monospace above a did-you-mean box linking to the closest matching page.

PRO

error5

404 Support Panel

Card-style 404 panel that echoes the requested URL in monospace, pairs a browser-history back button with link actions, and closes with a support and status link row.

Markdown version