Search Led 404

Monochrome 404 that hands the visitor a search field: a display headline with a muted emphasis clause, a rounded search bar with a circular submit seal wired to a callback, and a ruled list of the most travelled routes.

PRO

Error30: Search Led 404

A monochrome 404 that hands the visitor a search field instead of an apology: a rounded search bar with a circular submit seal sits under the headline, followed by a ruled list of the routes people actually take.

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.

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/error30?email=YOUR_EMAIL&license_key=YOUR_KEY"

Base UI flavor

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

This installs the block to components/beste/block/error30.tsx, plus the badge7 design-system primitive it renders the parenthetical eyebrows through.

Quick start

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

tsx
import { Error30, error30Demo } from "@/components/beste/block/error30";

export default function NotFound() {
  return <Error30 {...error30Demo} />;
}

Routing is the caller's job, so wire onSearch to your search page:

tsx
"use client";

import { useRouter } from "next/navigation";
import { Error30 } from "@/components/beste/block/error30";

export default function NotFound() {
  const router = useRouter();

  return (
    <Error30
      badge={{ label: "Missing" }}
      heading="Tell us what you came for <strong>and we will find it</strong>."
      description="The address you used does not resolve to anything."
      labels={{
        placeholder: "Search the site",
        suggestionsTitle: "Most travelled",
        note: "Search covers every project, note and page we publish.",
      }}
      suggestions={[
        { title: "Recent projects", description: "The last twelve months of work", href: "/work" },
        { title: "How we price", description: "Bands, retainers and what changes them", href: "/pricing" },
      ]}
      onSearch={(query) => router.push(`/search?q=${encodeURIComponent(query)}`)}
    />
  );
}

Props

PropTypeDefaultDescription
badge{ label: string }Parenthetical eyebrow above the headline
headingstringHeadline HTML, rendered as an h1; <strong> marks the muted clause
descriptionstringExplanatory paragraph under the headline
labelsError30Labels{}Field placeholder, list eyebrow, and the note under the field
suggestionsSuggestionItem[][]Ruled rows of suggested routes
onSearch(query: string) => voidCalled on submit with the trimmed query
classNamestringExtra classes for the outer <section>
ts
type Error30Labels = {
  placeholder?: string;
  suggestionsTitle?: string;
  note?: string;
};

type SuggestionItem = {
  title: string;
  description?: string;
  href: string;
};

Behavior notes

More Error blocks

View all Error
PRO

error19

Typographic 404 Index

Monochrome 404 built on oversized display type: a parenthetical eyebrow, a display headline with a muted emphasis clause, a pill call to action, and a ruled index of every section on the site.

PRO

error32

404 With Recent Writing

Monochrome 404 for a renamed article: a display headline and pill call to action above three recent entries, each a full-colour image tile with a plain date line and a bold title.

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

error20

Editorial 404 With Portrait Image

Two-column 404 in a quiet monochrome language: a parenthetical eyebrow, a two-line display headline, a pill call to action and an oversized report-the-link email on the left, a tall captioned photograph on the right.

PRO

error29

Oversized Numeral 404

Monochrome 404 led by the status code set as an oversized numeral, with the statement and pill call to action on one side of a hairline rule and the explanation plus display-type links on the other.

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.