404 页面

五种风格的动效 404 页面:故障扫描、磁吸数字、光标聚光灯、扇形卡片堆叠与打字终端。

故障风格

glitch.tsx

数字在随机字符间闪烁扫描后定格,悬停时出现色差分离效果。

404

Page not found

The page you are looking for moved, vanished, or never existed.

安装

$ bunx --bun shadcn add @uilab/not-found-glitch

API 参考

className?
string
code?
string

The big status code.

404
title?
string
Page not found
description?
string
The page you are looking for moved, vanished, or never existed.
homeHref?
string
homeLabel?
string
browseHref?
string
browseLabel?
string

磁吸风格

magnetic.tsx

每个数字都通过 Magnetic 包裹被光标吸引跟随,离开后弹簧回位。

Page not found

The page you are looking for moved, vanished, or never existed.

安装

$ bunx --bun shadcn add @uilab/not-found-magnetic

API 参考

className?
string
code?
string

The big status code.

404
title?
string
Page not found
description?
string
The page you are looking for moved, vanished, or never existed.
homeHref?
string
homeLabel?
string
browseHref?
string
browseLabel?
string

聚光灯风格

spotlight.tsx

深色面板中,跟随光标的聚光灯从昏暗底色中照亮下方的代码。

Page not found

The page you are looking for moved, vanished, or never existed.

安装

$ bunx --bun shadcn add @uilab/not-found-spotlight

API 参考

className?
string
code?
string

The big status code.

404
title?
string
Page not found
description?
string
The page you are looking for moved, vanished, or never existed.
homeHref?
string
homeLabel?
string
browseHref?
string
browseLabel?
string

堆叠风格

stacked.tsx

代码卡片下方藏有一叠卡片,悬停时以弹簧动效扇形展开。

404

out of the deck

Page not found

The page you are looking for moved, vanished, or never existed.

安装

$ bunx --bun shadcn add @uilab/not-found-stacked

API 参考

className?
string
code?
string

The big status code.

404
title?
string
Page not found
description?
string
The page you are looking for moved, vanished, or never existed.
homeHref?
string
homeLabel?
string
browseHref?
string
browseLabel?
string

终端风格

terminal.tsx

模拟终端窗口逐字打出失败的 cd 命令与 404 状态,光标闪烁。

~/uilab

$ cd /page

cd: no such file or directory: /page

$ status 404

Page not found

The page you are looking for moved, vanished, or never existed.

安装

$ bunx --bun shadcn add @uilab/not-found-terminal

API 参考

className?
string
code?
string

The big status code.

404
title?
string
Page not found
description?
string
The page you are looking for moved, vanished, or never existed.
homeHref?
string
homeLabel?
string
browseHref?
string
browseLabel?
string

Keep in mind

Some components on this site are inspired by or recreated from existing work across the web. I'm not here to take credit; just to learn, experiment, and sometimes push things a bit further. If something looks familiar and I forgot to mention you, reach out and I'll fix that right away.