Skip to content

    Browse components

    Not Found

    Drop-in 404 section: a huge parallax code with RGB-split glitch bursts, a friendly message and a home button.

    Open
    Customize

    Installation

    npx shadcn@latest add @glint-ui/not-found

    First time using @glint-ui? Add the registry to components.json once, or install by URL: npx shadcn@latest add https://glintui.vercel.app/r/not-found.json

    Usage

    import { NotFound } from "@/components/ui/not-found";
    
    // app/not-found.tsx
    export default function NotFoundPage() {
      return (
        <main className="h-screen">
          <NotFound homeHref="/" />
        </main>
      );
    }

    Props

    PropTypeDefaultDescription
    codestring"404"Big code shown in the middle.
    titlestring"This page drifted off"Heading.
    messagestring"The link might be broken, or the page moved somewhere new. Let's get you back on track."Supporting text.
    homeHrefstring"/"Where the button goes.
    buttonLabelstring"Back to home"Button text.
    glitchbooleantruePeriodic RGB-split glitch bursts.
    parallaxnumber18Px each digit drifts with the pointer.
    accentstring"#f43f5e"Glow and glitch accent.
    classNamestring—Extra classes for the root element.