# 404 Not Found With Actions

> Centered 404 not found page led by a monospace numeral, with a short explanation and Go Home plus Go Back buttons.

A shadcn/ui block from the [@7ovr](https://7ovr.com) registry, listed on [shadcn.exchange](https://shadcn.exchange/r/7ovr/error-1).

- Page, with a live preview: https://shadcn.exchange/r/7ovr/error-1
- Screenshot: https://abzjhwgwpdpz7ua5.public.blob.vercel-storage.com/shots/7ovr/error-1-light-56083cf13574386e.png
- Registry item: https://7ovr.com/r/error-1.json
- Categories: error
- Listed: 2026-10-13, source last changed 2026-10-13

## Install

```bash
npx shadcn@latest add https://7ovr.com/r/error-1.json
```

Run it in a project that has shadcn/ui set up. It adds the files below and installs what they depend on.

## Dependencies

- npm packages: `@base-ui/react`
- Registry items: `button`

## Notes from the registry

Requires a `base-*` style in components.json (the `shadcn init` default). Legacy `new-york`/`radix-*` styles install Radix primitives, which reject the `render` prop this block uses.

## Files

### `registry/blocks/error/1/error-block.tsx`

```tsx
import { Button } from "@/components/ui/button"
import { IconPlaceholder } from "@/components/icons/icon-placeholder"

export default function ErrorBlock() {
  return (
    <section className="flex min-h-svh w-full flex-col items-center justify-center gap-6 bg-background px-6 py-12 text-center text-foreground">
      <p className="font-mono text-7xl font-bold tracking-tighter sm:text-8xl">
        404
      </p>

      <div className="flex flex-col items-center gap-2">
        <h1 className="font-heading text-2xl font-bold tracking-tight sm:text-3xl">
          Page not found
        </h1>
        <p className="max-w-md text-sm text-muted-foreground">
          The page you are looking for does not exist or has been moved. Check
          the URL, or head back to safety.
        </p>
      </div>

      <div className="flex flex-col items-center gap-2 sm:flex-row">
        <Button
          render={<a href="#" />}
          nativeButton={false}
          className="w-full sm:w-auto"
        >
          <IconPlaceholder
            lucide="Compass"
            tabler="IconCompass"
            hugeicons="CompassIcon"
            phosphor="Compass"
            remixicon="RiCompass3Line"
            data-icon="inline-start"
            aria-hidden="true"
          />
          Go Home
        </Button>
        <Button
          variant="outline"
          render={<a href="#" />}
          nativeButton={false}
          className="w-full sm:w-auto"
        >
          <IconPlaceholder
            lucide="ArrowLeft"
            tabler="IconArrowLeft"
            hugeicons="ArrowLeftIcon"
            phosphor="ArrowLeft"
            remixicon="RiArrowLeftLine"
            data-icon="inline-start"
            aria-hidden="true"
          />
          Go Back
        </Button>
      </div>
    </section>
  )
}
```
