# Not Found 04

> A 404 not found block with a search input

A shadcn/ui block from the [@shadcnui-blocks](https://shadcnui-blocks.com) registry, listed on [shadcn.exchange](https://shadcn.exchange/r/shadcnui-blocks/not-found-04).

- Page, with a live preview: https://shadcn.exchange/r/shadcnui-blocks/not-found-04
- Screenshot: https://abzjhwgwpdpz7ua5.public.blob.vercel-storage.com/shots/shadcnui-blocks/not-found-04-light-e5d6aecc08900af7.png
- Registry item: https://shadcnui-blocks.com/r/not-found-04.json
- Listed: 2026-10-13, source last changed 2026-10-13

## Install

```bash
npx shadcn@latest add https://shadcnui-blocks.com/r/not-found-04.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: `lucide-react`
- Registry items: `button`, `input`

## Files

### `src/registry/blocks/radix/not-found-04/components/not-found.tsx`

```tsx
import { ArrowLeftIcon, SearchIcon, SearchXIcon } from "lucide-react";
import Link from "next/link";
import { Button } from "@/registry/bases/radix/ui/button";
import { Input } from "@/registry/bases/radix/ui/input";

export default function NotFound() {
  return (
    <div className="flex min-h-screen flex-col items-center justify-center px-6 text-center">
      <div className="flex size-12 items-center justify-center rounded-2xl border bg-muted">
        <SearchXIcon className="size-6 text-muted-foreground" />
      </div>
      <h1 className="mt-6 font-medium text-4xl/none tracking-tight">
        Page not found
      </h1>
      <p className="mt-4 max-w-sm text-pretty text-muted-foreground">
        Can&apos;t find what you&apos;re looking for?
        Try&nbsp;searching&nbsp;below.
      </p>
      <form action="/search" className="mt-8 w-full max-w-sm">
        <div className="relative">
          <SearchIcon className="absolute top-1/2 left-3 size-4 -translate-y-1/2 text-muted-foreground" />
          <Input
            className="pl-9"
            name="q"
            placeholder="Search..."
            type="search"
          />
        </div>
        <Button className="mt-3 w-full" type="submit">
          Search
        </Button>
      </form>
      <Button asChild className="mt-6" variant="link">
        <Link
          className="underline underline-offset-4 hover:text-foreground"
          href="#"
        >
          <ArrowLeftIcon /> Go back home
        </Link>
      </Button>
    </div>
  );
}
```
