Tapas UI
Esc
  • IntroductionGetting startedWhat Tapas UI is and where to start.
  • InstallationGetting startedSet up shadcn/ui and add your first section.
  • CLI & AI agentsGetting startedThe shadcn CLI, the @tapas namespace, the MCP server and AI prompts.
  • TemplatesGetting startedWhole pages built from sections, installed with one command.
  • Demo sitesGetting startedThree fictional sites built only from Tapas sections.
  • ThemingCustomizationHow sections pick up your colors and radius.
  • ColorsCustomizationEvery CSS variable sections read, what it is for and where it is used.
  • Dark modeCustomizationSections follow your .dark variables.
  • MotionCustomizationPlain and motion versions, reduced motion and pause controls.
  • AccessibilityCustomizationWhat every section guarantees.
  • Waitlist formsGuidesPost signups to your own API route and store them.
  • Checkout linksGuidesPoint pricing buttons at Stripe payment links or any URL.
Menu
Browse the docs

DocsNavigation & utility

404 page

A friendly 404 section with a link home and optional helpful links.

Preview

Version
Preview theme color
More themes

The big number tilts toward the mouse pointer. With reduced motion turned on, it renders the plain layout.

Page not found

The page you're looking for moved or never existed.

Page not found

The page you're looking for moved or never existed.

Installation

Run this in a project that already uses shadcn/ui. It adds the component and anything it needs; the motion version also adds the plain one and the motion package.

Usage

import { NotFound } from "@/components/custom/not-found";

// app/not-found.tsx
export default function NotFoundPage() {
  return <NotFound links={[{ label: "Read the docs", href: "/docs" }]} />;
}
import { NotFoundMotion } from "@/components/custom/not-found/not-found-motion";

<NotFoundMotion />

Props

PropTypeDefaultDescription
codestring"404"The big number (decorative).
titlestring"Page not found"The page's h1.
descriptionstring–One line on what happened.
home{ label; href }{ label: "Back to home", href: "/" }Main way out.
links{ label; href }[]–Other helpful pages.
...propsReact.ComponentProps<"section">–Any other section attribute (id, aria-*, data-*, ref) goes to the root element.
PropTypeDefaultDescription
codestring"404"The big number (decorative).
titlestring"Page not found"The page's h1.
descriptionstring–One line on what happened.
home{ label; href }{ label: "Back to home", href: "/" }Main way out.
links{ label; href }[]–Other helpful pages.
...propsReact.ComponentProps<"section">–Any other section attribute (id, aria-*, data-*, ref) goes to the root element.

Accessibility

  • The big number is hidden from screen readers; the h1 says what happened.
  • The motion version follows the visitor's reduced-motion setting and never hides content before it animates.