BlockDex

Components

Registries

Free blocks

Method

BlockDex

Components

Registries

Free blocks

Method

Open API

BlockDex

Components

Registries

Free blocks

Method

Open API

Components/brainless/grok-thought

Grok Thought

brainless/grok-thought
FreeComponent

Completed or streaming thought — ◆ Thought for 0.2s, or a bordered Thinking… body.

Install it

npx shadcn@latest add https://brainless.swerdlow.dev/r/grok-thought.json

Source

registry/brainless/grok/grok-thought.tsxbrainless.swerdlow.dev/r/grok-thought.json
1import * as React from "react";
2import { cn } from "@/lib/utils";
3
4/**
5 * GrokThought — a completed or streaming thought block.
6 *
7 * Captured forms:
8 * `◆ Thought for 0.2s` (one-liner)
9 * `❙ ◆ Thought for 0.1s` (gutter)
10 * `┃ ◆ Thinking…` + body (bordered stream)
11 */
12const BORDER = "#808080"; // 38;5;8
13const FG = "#e1e1e1";
14const MUTED = "#c0c0c0"; // 38;5;7
15const SILVER = "#c0c0c0";
16
17export function GrokThought({
18 elapsed = "0.2s",
19 streaming = false,
20 gutter = false,
21 className,
22 children,
23}: {
24 elapsed?: string;
25 streaming?: boolean;
26 /** Use the `❙` gutter marker instead of a plain diamond line. */
27 gutter?: boolean;
28 className?: string;
29 children?: React.ReactNode;
30}) {
31 const label = streaming ? "Thinking…" : `Thought for ${elapsed}`;
32
33 if (children || streaming) {
34 return (
35 <div
36 className={cn(
37 "border-l-2 pl-3 font-mono text-[13px] leading-[1.55]",
38 className,
39 )}
40 style={{ borderColor: BORDER }}
41 role="status"
42 aria-live={streaming ? "polite" : undefined}
43 >
44 <div className="flex items-baseline gap-2">
45 <span aria-hidden style={{ color: BORDER }}>
46 ◆
47 </span>
48 <span className="font-semibold" style={{ color: MUTED }}>
49 {label}
50 </span>
51 </div>
52 {children ? (
53 <div className="mt-1 whitespace-pre-wrap" style={{ color: FG }}>
54 {children}
55 </div>
56 ) : null}
57 </div>
58 );
59 }
60
61 return (
62 <div
63 className={cn(
64 "flex items-baseline gap-2 font-mono text-[13px] leading-[1.55]",
65 className,
66 )}
67 >
68 {gutter ? (
69 <span aria-hidden style={{ color: BORDER }}>
70 ❙
71 </span>
72 ) : null}
73 <span aria-hidden style={{ color: SILVER }}>
74 ◆
75 </span>
76 <span style={{ color: MUTED }}>{label}</span>
77 </div>
78 );
79}

Files it writes

  • registry/brainless/grok/grok-thought.tsx

Facts

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

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