Skip to main content

shadcn/ui 404 block for React Aria404

Production-ready 404 and error page blocks for shadcn/ui. Empty states and not-found layouts from the shadcn/ui Pro kit.

Free@shadcnpro/aria/marketing-404

Preview

Installation

npx shadcn@latest add @shadcnpro/aria/marketing-404

First time? Add the @shadcnpro registry to components.json as shown in Installation. Free blocks install without a license key.

Let your AI editor install it

The shadcn/ui Pro MCP server lets Cursor, Claude Code and VS Code find and install blocks like 404 from one prompt. It is included in every Pro plan.

Add the shadcn/ui components

404 uses Button, from the React Aria components set up in your components.json.

npx shadcn@latest add button

Install the npm packages

npm install lucide-react

Copy the code

Paste it into components/blocks/marketing-404.tsx.

components/blocks/marketing-404.tsx
'use client';

import React from 'react';
import { LinkButton } from '@/components/ui/button';
import { Home } from 'lucide-react';

export default function Marketing404() {
  return (
    <div className="flex min-h-screen flex-col items-center justify-center p-4">
      <div className="text-center space-y-6">
        <h1 className="text-9xl font-bold text-muted-foreground/20">404</h1>
        <div className="space-y-2">
          <h2 className="text-3xl font-bold tracking-tight">Page not found</h2>
          <p className="text-muted-foreground">
            Sorry, we couldn't find the page you're looking for.
          </p>
        </div>
        <LinkButton href="/">
          <Home className="mr-2 h-4 w-4" />
          Back to home
        </LinkButton>
      </div>
    </div>
  );
}

Use it

Import it where you need it and update the import path to match your project.

Usage
import Marketing404 from '@/components/blocks/marketing-404';

export default function Page() {
  return <Marketing404 />;
}

Overview

404 is a free 404 block for shadcn/ui and React Aria. It is built from the Button component with lucide-react, and installs as a single file you own and can edit.

It only uses semantic tokens such as bg-background, text-muted-foreground and border-border, so it follows your theme, radius and fonts and switches with dark mode. It is a full-page layout that fills the viewport and adapts from desktop to mobile. The same layout is in the shadcn/ui Pro Figma kit, so design and code start from one source.

Category
404
Component library
React Aria (react-aria-components)
Also available for
Radix UI, Base UI
Built with
Button
npm packages
lucide-react
Files
components/blocks/marketing-404.tsx
Access
Free, installs without a license key

Frequently asked questions

Pricing, installation and React Aria details for 404.