Links here are meant to last, so this is either a typo or something we moved before we knew better. Search for it and it is probably still published.
Most read this month
Nothing published here has ever been deleted. If it existed, it is somewhere.
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.
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
npx shadcn add "https://ui.beste.co/r/error38?email=YOUR_EMAIL&license_key=YOUR_KEY"Base UI flavor
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.
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.
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:
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."
/>
);
}| Prop | Type | Default | Description |
|---|---|---|---|
code | string | – | Status code, rendered as the Badge6 label |
heading | string | – | What went wrong, in words |
description | string | – | Why it might have happened |
placeholder | string | – | Placeholder in the search field |
submitLabel | string | – | Label on the submit button |
popularLabel | string | – | Label above the fallback links |
popular | PopularPiece[] | [] | Somewhere to go instead |
note | string | – | Closing line about link permanence |
className | string | – | Extra classes for the outer section |
type PopularPiece = {
title: string;
href: string;
};preventDefault, which is the seam to point at your own search route.Badge6 rather than set as huge display type, so the page leads with the sentence and not the number.pointer-events-none with pl-12 on the input, so the icon never takes a click.