404 Support Panel

Error 404

We cannot find that page

The address below did not match anything on this site. It may have been renamed, or the link that sent you here is out of date.

Requested URL

/docs/getting-started/installation-v1

About this block

404 Support PanelPRO

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.

Error5: 404 Support Panel

A card-style 404 panel for apps and documentation: it echoes the requested URL back in monospace, pairs a browser-history back button with ordinary link actions, and closes with a support and status link row.

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

Base UI flavor

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

This installs the block to components/beste/block/error5.tsx, plus the button shadcn/ui primitive it uses for the back and action buttons.

Quick start

The installed file exports error5Demo alongside the block: the exact props behind the preview above. Spread it to get a working 404 panel in one line.

tsx
import { Error5, error5Demo } from "@/components/beste/block/error5";

export default function NotFound() {
  return <Error5 {...error5Demo} />;
}

To show the URL that actually failed, read the pathname on the client and pass it in:

tsx
"use client";

import { House, Mail } from "lucide-react";
import { usePathname } from "next/navigation";
import { Error5 } from "@/components/beste/block/error5";

export default function NotFound() {
  const pathname = usePathname();

  return (
    <Error5
      code="Error 404"
      heading="We cannot find that page"
      description="The address below did not match anything on this site."
      pathLabel="Requested URL"
      path={pathname}
      backLabel="Go back"
      buttons={[{ label: "Back to home", href: "/", icon: House }]}
      supportLabel="Still stuck?"
      supportLinks={[{ label: "Contact support", href: "/support", icon: Mail }]}
    />
  );
}

Props

PropTypeDefaultDescription
codestring–Status text inside the pill at the top of the card
headingstring–Panel heading, rendered as an h1
descriptionstring–Explanatory paragraph under the heading
pathLabelstring–Caption above the echoed URL
pathstring–The requested URL, shown in monospace
backLabelstring–Label for the history back button
buttonsActionButton[][]Link actions next to the back button
supportLabelstring–Lead-in text for the support link row
supportLinksSupportLink[][]Links in the footer row
onBack() => void–Overrides the default browser history back behavior
classNamestring–Extra classes for the outer <section>
ts
type ActionButton = {
  label: string;
  href: string;
  variant?: "default" | "outline" | "secondary" | "ghost";
  icon?: LucideIcon;
};

type SupportLink = {
  label: string;
  href: string;
  icon?: LucideIcon;
};

Behavior notes

  • The back button calls window.history.back() unless an onBack handler is passed, in which case only that handler runs. Pass onBack when you need router-aware navigation instead of a raw history step.
  • The button only renders when backLabel is set, so leaving the label out gives a panel with link actions only.
  • The echoed URL is truncated with truncate inside its own bordered box, so a long path shortens with an ellipsis rather than widening the card or wrapping across lines.
  • The whole URL box only renders when path is set; pathLabel on its own renders nothing.
  • The support row is separated by a top border and only renders when supportLinks is non-empty, which also hides supportLabel along with it.

More Error blocks

View all Error
PRO

error4

404 With Destination Cards

FREE

error35

Server Error With Live Status

FREE

error9

404 Did You Mean

Get Pro access