---
title: "404 / Not Found | Free React & Tailwind Blocks Component | Motion UI"
canonical: "https://blacknest.dev/motion/c/blocks/not-found"
github_source: "https://github.com/Rkj0123/motion-ui-skill/blob/main/components/motion/not-found/index.tsx"
install_command: "npx motion-ui-skill add not-found"
dependencies: ["clsx","motion","react","tailwind-merge"]
category: "blocks"
subcategory: "not-found"
---

# 404 / Not Found

> Animated 404 pages in five styles: glitch scramble, magnetic digits, cursor spotlight, a fanning card stack and a typed terminal.

## Install

### Glitch

Digits scramble through random glyphs before resolving, with a chromatic split on hover.

```bash
npx motion-ui-skill add not-found-glitch
```

### Magnetic

Each digit is cursor-attracted via the Magnetic wrapper and springs back on leave.

```bash
npx motion-ui-skill add not-found-magnetic
```

### Spotlight

A dark panel where a cursor-tracked spotlight reveals the bright code from a dim base.

```bash
npx motion-ui-skill add not-found-spotlight
```

### Stacked

A code card over a hidden stack that fans out with a spring on hover.

```bash
npx motion-ui-skill add not-found-stacked
```

### Terminal

A terminal window that types a failed cd command and a 404 status, with a blinking caret.

```bash
npx motion-ui-skill add not-found-terminal
```

## Dependencies

- `clsx`
- `motion`
- `react`
- `tailwind-merge`

## Usage

### Glitch usage

Digits scramble through random glyphs before resolving, with a chromatic split on hover.

```tsx
"use client";

import { NotFoundGlitch } from "@/components/motion/not-found/glitch";

export function NotFoundGlitchPreview() {
  return (
    <div className="w-full">
      <NotFoundGlitch />
    </div>
  );
}
```

### Magnetic usage

Each digit is cursor-attracted via the Magnetic wrapper and springs back on leave.

```tsx
"use client";

import { NotFoundMagnetic } from "@/components/motion/not-found/magnetic";

export function NotFoundMagneticPreview() {
  return (
    <div className="w-full">
      <NotFoundMagnetic />
    </div>
  );
}
```

### Spotlight usage

A dark panel where a cursor-tracked spotlight reveals the bright code from a dim base.

```tsx
"use client";

import { NotFoundSpotlight } from "@/components/motion/not-found/spotlight";

export function NotFoundSpotlightPreview() {
  return (
    <div className="w-full">
      <NotFoundSpotlight />
    </div>
  );
}
```

### Stacked usage

A code card over a hidden stack that fans out with a spring on hover.

```tsx
"use client";

import { NotFoundStacked } from "@/components/motion/not-found/stacked";

export function NotFoundStackedPreview() {
  return (
    <div className="w-full">
      <NotFoundStacked />
    </div>
  );
}
```

### Terminal usage

A terminal window that types a failed cd command and a 404 status, with a blinking caret.

```tsx
"use client";

import { NotFoundTerminal } from "@/components/motion/not-found/terminal";

export function NotFoundTerminalPreview() {
  return (
    <div className="w-full">
      <NotFoundTerminal />
    </div>
  );
}
```

## API Reference

### NotFoundGlitch

| Prop | Type | Default | Required | Description |
| --- | --- | --- | --- | --- |
| `className` | `string` | — | No | — |
| `code` | `string` | `404` | No | The big status code. |
| `title` | `string` | `Page not found` | No | — |
| `description` | `string` | `The page you are looking for moved, vanished, or never existed.` | No | — |
| `homeHref` | `string` | — | No | — |
| `homeLabel` | `string` | — | No | — |
| `browseHref` | `string` | — | No | — |
| `browseLabel` | `string` | — | No | — |

### NotFoundMagnetic

| Prop | Type | Default | Required | Description |
| --- | --- | --- | --- | --- |
| `className` | `string` | — | No | — |
| `code` | `string` | `404` | No | The big status code. |
| `title` | `string` | `Page not found` | No | — |
| `description` | `string` | `The page you are looking for moved, vanished, or never existed.` | No | — |
| `homeHref` | `string` | — | No | — |
| `homeLabel` | `string` | — | No | — |
| `browseHref` | `string` | — | No | — |
| `browseLabel` | `string` | — | No | — |

### NotFoundSpotlight

| Prop | Type | Default | Required | Description |
| --- | --- | --- | --- | --- |
| `className` | `string` | — | No | — |
| `code` | `string` | `404` | No | The big status code. |
| `title` | `string` | `Page not found` | No | — |
| `description` | `string` | `The page you are looking for moved, vanished, or never existed.` | No | — |
| `homeHref` | `string` | — | No | — |
| `homeLabel` | `string` | — | No | — |
| `browseHref` | `string` | — | No | — |
| `browseLabel` | `string` | — | No | — |

### NotFoundStacked

| Prop | Type | Default | Required | Description |
| --- | --- | --- | --- | --- |
| `className` | `string` | — | No | — |
| `code` | `string` | `404` | No | The big status code. |
| `title` | `string` | `Page not found` | No | — |
| `description` | `string` | `The page you are looking for moved, vanished, or never existed.` | No | — |
| `homeHref` | `string` | — | No | — |
| `homeLabel` | `string` | — | No | — |
| `browseHref` | `string` | — | No | — |
| `browseLabel` | `string` | — | No | — |

### NotFoundTerminal

| Prop | Type | Default | Required | Description |
| --- | --- | --- | --- | --- |
| `className` | `string` | — | No | — |
| `code` | `string` | `404` | No | The big status code. |
| `title` | `string` | `Page not found` | No | — |
| `description` | `string` | `The page you are looking for moved, vanished, or never existed.` | No | — |
| `homeHref` | `string` | — | No | — |
| `homeLabel` | `string` | — | No | — |
| `browseHref` | `string` | — | No | — |
| `browseLabel` | `string` | — | No | — |

## Source Files

- [components/motion/not-found/index.tsx](https://github.com/Rkj0123/motion-ui-skill/blob/main/components/motion/not-found/index.tsx)
- [components/motion/not-found/shared.tsx](https://github.com/Rkj0123/motion-ui-skill/blob/main/components/motion/not-found/shared.tsx)
- [components/motion/not-found/glitch.tsx](https://github.com/Rkj0123/motion-ui-skill/blob/main/components/motion/not-found/glitch.tsx)
- [components/motion/not-found/magnetic.tsx](https://github.com/Rkj0123/motion-ui-skill/blob/main/components/motion/not-found/magnetic.tsx)
- [components/motion/not-found/spotlight.tsx](https://github.com/Rkj0123/motion-ui-skill/blob/main/components/motion/not-found/spotlight.tsx)
- [components/motion/not-found/stacked.tsx](https://github.com/Rkj0123/motion-ui-skill/blob/main/components/motion/not-found/stacked.tsx)
- [components/motion/not-found/terminal.tsx](https://github.com/Rkj0123/motion-ui-skill/blob/main/components/motion/not-found/terminal.tsx)
- [components/motion/magnetic.tsx](https://github.com/Rkj0123/motion-ui-skill/blob/main/components/motion/magnetic.tsx)
- [components/motion/text-reveal.tsx](https://github.com/Rkj0123/motion-ui-skill/blob/main/components/motion/text-reveal.tsx)
- [lib/ease.ts](https://github.com/Rkj0123/motion-ui-skill/blob/main/lib/ease.ts)
- [lib/hooks/use-hover-capable.ts](https://github.com/Rkj0123/motion-ui-skill/blob/main/lib/hooks/use-hover-capable.ts)
- [lib/utils.ts](https://github.com/Rkj0123/motion-ui-skill/blob/main/lib/utils.ts)
