BlockDex

Components

Registries

Free blocks

Method

BlockDex

Components

Registries

Free blocks

Method

Open API

BlockDex

Components

Registries

Free blocks

Method

Open API

Components/beui/not-found-glitch

404 / Not Found Glitch

beui/not-found-glitch
FreeBlock

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

Install it

npx shadcn@latest add https://beui.dev/r/not-found-glitch.json

Source

components/motion/not-found/glitch.tsxbeui.dev/r/not-found-glitch.json
1"use client";
2// beui.dev/components/blocks/not-found
3
4import { useEffect, useState } from "react";
5import { useReducedMotion } from "motion/react";
6import {
7 NOT_FOUND_DEFAULTS,
8 NotFoundActions,
9 NotFoundStage,
10 type NotFoundProps,
11} from "./shared";
12
13const GLYPHS = "ABCDEFGHJKLMNPQRSTUVWXYZ0123456789#%&@$?/\\";
14const SCRAMBLE_MS = 700;
15const TICK_MS = 45;
16
17/**
18 * Renders the code, scrambling each character on mount before it settles.
19 * SSR and the first paint show the real code, so the scramble is a pure
20 * client-side enhancement and reduced-motion users see the code immediately.
21 */
22function Scramble({ text }: { text: string }) {
23 const reduce = useReducedMotion();
24 const [display, setDisplay] = useState(text);
25
26 useEffect(() => {
27 if (reduce) {
28 setDisplay(text);
29 return;
30 }
31 const chars = text.split("");
32 const start = performance.now();
33 let raf = 0;
34 let last = 0;
35
36 const loop = (now: number) => {
37 if (now - last >= TICK_MS) {
38 last = now;
39 const progress = Math.min((now - start) / SCRAMBLE_MS, 1);
40 const settled = Math.floor(progress * chars.length);
41 setDisplay(
42 chars
43 .map((ch, i) =>
44 i < settled || ch === " "
45 ? ch
46 : GLYPHS[Math.floor(Math.random() * GLYPHS.length)],
47 )
48 .join(""),
49 );
50 }
51 if (now - start < SCRAMBLE_MS) {
52 raf = requestAnimationFrame(loop);
53 } else {
54 setDisplay(text);
55 }
56 };
57 raf = requestAnimationFrame(loop);
58 return () => cancelAnimationFrame(raf);
59 }, [text, reduce]);
60
61 return <span className="tabular-nums">{display}</span>;
62}
63
64export function NotFoundGlitch({
65 className,
66 code = NOT_FOUND_DEFAULTS.code,
67 title = NOT_FOUND_DEFAULTS.title,
68 description = NOT_FOUND_DEFAULTS.description,
69 homeHref,
70 homeLabel,
71 browseHref,
72 browseLabel,
73}: NotFoundProps) {
74 return (
75 <NotFoundStage className={className}>
76 <div className="group relative select-none font-mono font-bold leading-none tracking-tighter text-foreground [font-size:clamp(5rem,18vw,11rem)]">
77 {/* Chromatic ghost layers, nudged apart on hover. */}
78 <span
79 aria-hidden
80 className="pointer-events-none absolute inset-0 text-[#ff0040] opacity-0 mix-blend-screen transition-[transform,opacity] duration-150 ease-out group-hover:translate-x-[3px] group-hover:opacity-70 motion-reduce:hidden"
81 >
82// … truncated

What it pulls in

npm packages

  • clsx
  • motion
  • tailwind-merge

Files it writes

  • components/motion/not-found/glitch.tsx
  • components/motion/not-found/shared.tsx
  • lib/ease.ts
  • lib/hooks/use-hover-capable.ts
  • lib/utils.ts

Facts

Registry
beui
Type
registry:block
Access
Free
Files written
5
Licence
the repository states none
In the index
at or before 2026-08-12
Last confirmed
yesterday

Go to the source

beui.dev Raw registry item This item as JSON

More from beui

All 104 items
Same registry, same kind — the ones you would have found next
ComponentRegistryKindAccessInstallsCommand
File Upload Attachment Uploadattachment-uploadbeuiBlocksFree4 deps · 5 files
Availability Scheduleravailability-schedulerbeuiBlocksFree4 deps · 15 files
Bloom Menubloom-menubeuiBlocksFree4 deps · 3 files
Command Palettecommand-palettebeuiBlocksFree4 deps · 3 files
Dynamic Islanddynamic-islandbeuiBlocksFree3 deps · 3 files
Expandable Action Barexpandable-action-barbeuiBlocksFree3 deps · 2 files
Expandable Tabsexpandable-tabsbeuiBlocksFree3 deps · 3 files
Feedback Widgetfeedback-widgetbeuiBlocksFree4 deps · 9 files

The studio list

One product, taken apart, once a month

Kynth Studios pulls one shipped product open every month — what it does, what it cost to build, what the pipeline behind it looks like, and what the numbers did. One email a month, nothing in between.

Double opt-in — we send one confirmation link and nothing else until you click it.

BlockDex

Built by

Kynth Studios

the studio behind StoreReady, ToolDrift and BreachProbe

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

© 2026 BlockDex. A Kynth Studios product.

BlockDex

The studio list

One product, taken apart, once a month

Kynth Studios pulls one shipped product open every month — what it does, what it cost to build, what the pipeline behind it looks like, and what the numbers did. One email a month, nothing in between.

Double opt-in — we send one confirmation link and nothing else until you click it.

BlockDex

Built by

Kynth Studios

the studio behind StoreReady, ToolDrift and BreachProbe

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

© 2026 BlockDex. A Kynth Studios product.

BlockDex

The studio list

One product, taken apart, once a month

Kynth Studios pulls one shipped product open every month — what it does, what it cost to build, what the pipeline behind it looks like, and what the numbers did. One email a month, nothing in between.

Double opt-in — we send one confirmation link and nothing else until you click it.

BlockDex

Built by

Kynth Studios

the studio behind StoreReady, ToolDrift and BreachProbe

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

© 2026 BlockDex. A Kynth Studios product.

BlockDex