BlockDex

Components

Registries

Free blocks

Method

BlockDex

Components

Registries

Free blocks

Method

Open API

BlockDex

Components

Registries

Free blocks

Method

Open API

Components/brainless/codex-working

Codex Working

brainless/codex-working
FreeComponent

Codex's Working line — a • bullet, grayscale shimmer on Working, and live elapsed/interrupt hint, as an aria-live status region.

Install it

npx shadcn@latest add https://brainless.swerdlow.dev/r/codex-working.json

Source

registry/brainless/codex/codex-working.tsxbrainless.swerdlow.dev/r/codex-working.json
1"use client";
2
3import * as React from "react";
4import { cn } from "@/lib/utils";
5
6/**
7 * CodexWorking — Codex's "Working" line.
8 *
9 * A static `•` bullet, the word Working with Codex's grayscale shimmer (a
10 * bright band drifting left→right), and `(Ns • esc to interrupt)`. Polite
11 * live region for screen readers.
12 */
13const BULLET = "#a7a7a7";
14const DIM = "#7a7a7a";
15const SHIMMER_DARK = "#808080";
16const SHIMMER_LIGHT = "#e7e7e7";
17
18export function CodexWorking({
19 running = true,
20 label = "Working",
21 className,
22}: {
23 running?: boolean;
24 label?: string;
25 className?: string;
26}) {
27 const prefersReduced = usePrefersReducedMotion();
28 const [secs, setSecs] = React.useState(0);
29
30 React.useEffect(() => {
31 if (!running) return;
32 const id = setInterval(() => setSecs((s) => s + 1), 1000);
33 return () => clearInterval(id);
34 }, [running]);
35
36 if (!running) return null;
37
38 return (
39 <div
40 role="status"
41 aria-live="polite"
42 className={cn(
43 "flex items-baseline gap-2 font-mono text-[13px] font-bold",
44 className,
45 )}
46 >
47 <style>{`
48 .cx-working-shimmer {
49 background-image: linear-gradient(
50 90deg,
51 ${SHIMMER_DARK} 0%,
52 ${SHIMMER_DARK} 40%,
53 ${SHIMMER_LIGHT} 50%,
54 ${SHIMMER_DARK} 60%,
55 ${SHIMMER_DARK} 100%
56 );
57 /* 200% size + 100%→−100% travel = one clean period (no loop hitch) */
58 background-size: 200% 100%;
59 -webkit-background-clip: text;
60 background-clip: text;
61 color: transparent;
62 -webkit-text-fill-color: transparent;
63 animation: cx-working-shine 1.6s linear infinite;
64 }
65 @keyframes cx-working-shine {
66 from { background-position: 100% 0; }
67 to { background-position: -100% 0; }
68 }
69 @media (prefers-reduced-motion: reduce) {
70 .cx-working-shimmer {
71 animation: none;
72 background-image: none;
73 color: ${SHIMMER_LIGHT};
74 -webkit-text-fill-color: ${SHIMMER_LIGHT};
75 }
76 }
77 `}</style>
78 <span aria-hidden style={{ color: BULLET }}>
79 •
80 </span>
81 <span
82 className={prefersReduced ? undefined : "cx-working-shimmer"}
83 style={prefersReduced ? { color: SHIMMER_LIGHT } : undefined}
84 >
85 {label}
86 </span>
87 <span className="font-normal" style={{ color: DIM }}>
88// … truncated

Files it writes

  • registry/brainless/codex/codex-working.tsx

Facts

Registry
brainless
Type
registry:ui
Access
Free
Files written
1
Licence
MIT
First indexed
2026-08-02
Last confirmed
yesterday

Go to the source

brainless.swerdlow.dev theswerd/brainless on GitHub Raw registry item This item as JSON

More from brainless

All 40 items
Same registry, same kind — the ones you would have found next
ComponentRegistryKindAccessInstallsCommand
Claude Diffclaude-diffbrainlessComponentsFreeno deps
Claude Headerclaude-headerbrainlessComponentsFreeno deps
Claude Messageclaude-messagebrainlessComponentsFreeno deps
Claude Permissionclaude-permissionbrainlessComponentsFreeno deps
Claude Promptclaude-promptbrainlessComponentsFreeno deps
Claude Slash Menuclaude-slash-menubrainlessComponentsFreeno deps
Claude Thinkingclaude-thinkingbrainlessComponentsFreeno deps
Claude Todo Listclaude-todo-listbrainlessComponentsFreeno deps
BlockDex

Built by

Kynth Studio

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

BlockDex

BlockDex

Built by

Kynth Studio

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

BlockDex

BlockDex

Built by

Kynth Studio

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

BlockDex