Inline 404 Line

The smallest possible 404: the status code and the message sit on one line separated by a vertical rule, stacking on mobile, with a single outline button underneath.

FREE

Error6: Inline 404 Line

The smallest error page in the set: the status code and the message sit side by side on one line, separated by a vertical rule that disappears on mobile, with a single outline button underneath. Nothing else competes for attention.

Free block

This block is free. No license or account is required: install it with the CLI and use it in unlimited projects.

Installation

Radix flavor

bash
npx shadcn add "https://ui.beste.co/r/error6"

Base UI flavor

bash
npx shadcn add "https://ui.beste.co/r-base/error6"

This installs the block to components/beste/block/error6.tsx, plus the button shadcn/ui primitive it uses for the single action.

Quick start

The installed file exports error6Demo alongside the block: the exact props behind the preview above. Spread it into Next.js's not-found.tsx for a working error page in one line.

tsx
import { Error6, error6Demo } from "@/components/beste/block/error6";

export default function NotFound() {
  return <Error6 {...error6Demo} />;
}

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

tsx
import { Error6 } from "@/components/beste/block/error6";

export default function NotFound() {
  return (
    <Error6
      code="404"
      heading="This page could not be found"
      description="The link is broken or the page has been removed."
      link={{ label: "Back to home", href: "/" }}
    />
  );
}

Props

PropTypeDefaultDescription
codestringStatus code shown at the start of the line
headingstringMessage text, rendered as an h1
descriptionstringSecondary line under the message
linkActionLinkSingle outline button below the line
classNamestringExtra classes for the outer <section>
ts
type ActionLink = {
  label: string;
  href: string;
};

Behavior notes

More Error blocks

View all Error
FREE

error1

Centered 404 Message

Minimal centered 404 page with a large error code, a heading, a short explanation, two call-to-action buttons, and a divided row of popular page links underneath.

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

error3

Split 404 With Image

Two-column 404 page with the error code, heading, explanation, buttons, and a small note on one side, and a full-bleed image that scales on hover on the other. The image side can be flipped with a prop.

PRO

error24

404 With Featured Work

Studio 404 that recovers a dead project URL: a square eyebrow and status code over a hairline rule, an accent headline and seal button, then two large project cards with category lines and hover arrow chips.

FREE

error7

404 Notice Card

Compact bordered 404 card with a circular icon, status label, heading, one-line explanation, and stacked full-width buttons. Sized for app shells and modals as well as full pages.

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.