# Search

> A site search under the heading, over a faint 404 behind the text.

URL: https://apogee.avaui.dev/docs/not-found-pages/search
Last updated: 2026-10-15

A site search under the heading, over a faint 404 behind the text.

Last updated October 15, 2026

Live example: https://apogee.avaui.dev/examples/not-found/search

```astro
---
/**
 * Search: A site search under the heading, over a faint 404 behind the text.
 *
 * @page not-found
 */
import { Search } from '@lucide/astro'
import NotFound from '@/components/apogee/sections/NotFound/NotFound.astro'
import Input from '@/components/apogee/Input/Input.astro'
import Button from '@/components/apogee/Button/Button.astro'
---

<NotFound fullHeight back="Go back" watermark code="404" heading="We lost this page" description="The page you are looking for doesn't exist or has been moved.">
  <form role="search" action="/search" method="get" class="flex w-full max-w-md flex-col gap-3 sm:flex-row">
    <Input type="search" name="q" aria-label="Search the site" placeholder="Search our site" class="flex-1">
      <Search slot="start" aria-hidden="true" />
    </Input>
    <Button type="submit" variant="outline" color="neutral">Search</Button>
  </form>
</NotFound>
```

## Add

```sh
npx @ava-ui/apogee add not-found/search
```

This copies the page to `src/components/apogee/pages/not-found/` with everything it uses: Button, Input, NotFound. Render it from `src/pages/404.astro`, or use **Copy code** above.

## Accessibility

-   The page heading is the `h1`.
-   “Go back” returns to the previous page (or home when the page was opened directly). It needs JS, so it hides without it; “Take me home” always works.
-   The search is a `role="search"` form that sends `q` to `/search` with GET; point `action` at your own search page.
-   The large 404 behind the text is decoration (`aria-hidden`).

## Related

[

Not foundThe 404 page body; a status line, heading, description and a way back, centred, left-aligned or beside media.

](https://apogee.avaui.dev/docs/sections/not-found)[

InputA labeled text field with hint/error messaging, wired for accessibility — plus a pure-CSS floating label.

](https://apogee.avaui.dev/docs/input)
