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-message

Grok Message

brainless/grok-message
FreeComponent

A Grok conversation turn — the ❯ user marker or plain assistant text, with optional wall-clock timestamp.

Install it

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

Source

registry/brainless/grok/grok-message.tsxbrainless.swerdlow.dev/r/grok-message.json
1import * as React from "react";
2import { cn } from "@/lib/utils";
3
4/**
5 * GrokMessage — a Grok turn. User prompts carry the ❯ marker; the assistant
6 * reply is plain text. Optional wall-clock `time` (e.g. `4:38 PM`) pins to the
7 * right, matching the live CLI transcript.
8 */
9export function GrokMessage({
10 role = "assistant",
11 time,
12 className,
13 children,
14}: {
15 role?: "user" | "assistant";
16 time?: string;
17 className?: string;
18 children: React.ReactNode;
19}) {
20 if (role === "user") {
21 return (
22 <div
23 className={cn(
24 "flex min-w-0 gap-2 font-mono text-[13px] leading-[1.6] text-[#e8e8e8]",
25 className,
26 )}
27 >
28 <span aria-hidden className="shrink-0">
29 ❯
30 </span>
31 <span className="min-w-0 flex-1 break-words">{children}</span>
32 {time ? (
33 <span className="shrink-0 tabular-nums text-[#6c6c6c]">{time}</span>
34 ) : null}
35 </div>
36 );
37 }
38
39 return (
40 <div
41 className={cn(
42 "flex min-w-0 gap-2 font-mono text-[13px] leading-[1.6] text-[#cfcfd2]",
43 className,
44 )}
45 >
46 <span className="min-w-0 flex-1 break-words">{children}</span>
47 {time ? (
48 <span className="shrink-0 tabular-nums text-[#6c6c6c]">{time}</span>
49 ) : null}
50 </div>
51 );
52}

Files it writes

  • registry/brainless/grok/grok-message.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