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-project-picker

Grok Project Picker

brainless/grok-project-picker
FreeComponent

Run Grok Build in a project directory? — left-border chooser with recent dirs and a free-text option.

Install it

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

Source

registry/brainless/grok/grok-project-picker.tsxbrainless.swerdlow.dev/r/grok-project-picker.json
1"use client";
2
3import * as React from "react";
4import { cn } from "@/lib/utils";
5
6/**
7 * GrokProjectPicker — "Run Grok Build in a project directory?" chooser.
8 *
9 * Captured from a fresh launch outside a trusted project: left-border card
10 * with `(○)` radios for recent dirs plus a free-text `z` option.
11 */
12const BORDER = "#808080";
13const FG = "#e1e1e1";
14const MUTED = "#8b8b90";
15const DIM = "#6c6c6c";
16
17export type GrokProject = {
18 id: string;
19 name: string;
20 path: string;
21 meta?: string;
22};
23
24const DEFAULT_PROJECTS: GrokProject[] = [
25 {
26 id: "current",
27 name: "brainless",
28 path: "~/dev/brainless",
29 meta: "current",
30 },
31 {
32 id: "cloudstate",
33 name: "freestyle-cloudstate",
34 path: "~/Documents/GitHub/freestyle-cloudstate",
35 meta: "5h ago",
36 },
37 {
38 id: "conduit",
39 name: "Conduit",
40 path: "~/Documents/Conduit",
41 meta: "5h ago",
42 },
43];
44
45export function GrokProjectPicker({
46 title = "Run Grok Build in a project directory?",
47 description = "This gives Grok Build full context of your codebase for better results.",
48 projects = DEFAULT_PROJECTS,
49 defaultSelected = 0,
50 onChoose,
51 className,
52}: {
53 title?: string;
54 description?: string;
55 projects?: GrokProject[];
56 defaultSelected?: number;
57 onChoose?: (index: number | "custom") => void;
58 className?: string;
59}) {
60 const [sel, setSel] = React.useState(defaultSelected);
61 const customIndex = projects.length;
62
63 const options = [
64 ...projects.map((p, i) => ({
65 key: p.id,
66 index: i,
67 label: (
68 <>
69 <span style={{ color: FG }}>{p.name}</span>
70 {p.meta === "current" ? (
71 <span style={{ color: DIM }}> (current)</span>
72 ) : null}
73 <span style={{ color: DIM }}> {p.path}</span>
74 {p.meta && p.meta !== "current" ? (
75 <span style={{ color: DIM }}> ({p.meta})</span>
76 ) : null}
77 </>
78 ),
79 })),
80 {
81 key: "custom",
82 index: customIndex,
83 label: <span style={{ color: MUTED }}>Type your answer here</span>,
84 },
85 ];
86
87 function onKey(e: React.KeyboardEvent, i: number) {
88 if (e.key === "ArrowDown" || e.key === "ArrowUp") {
89 e.preventDefault();
90 const next =
91 e.key === "ArrowDown"
92 ? (i + 1) % options.length
93 : (i - 1 + options.length) % options.length;
94 setSel(next);
95 (e.currentTarget.parentElement?.children[next] as HTMLElement)?.focus();
96 } else if (e.key === "Enter" || e.key === " ") {
97// … truncated

Files it writes

  • registry/brainless/grok/grok-project-picker.tsx

Facts

Registry
brainless
Type
registry:ui
Access
Free
Files written
1
Licence
MIT
In the index
at or before 2026-08-13
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

Also from Kynth Studios

Built for the same person as BlockDex

SkillWorks

Claude Code skills and plugins, scored

skillworks.kynth.studio

RuleStack

AGENTS.md gallery and agent-config comparison

rulestack.kynth.studio

ToolDrift

What the AI coding tools changed last night

tooldrift.kynth.studio

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 SkillWorks, RuleStack and ToolDrift

part of Toolproof, the measurement layer for AI agent tooling

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. Changelog

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 SkillWorks, RuleStack and ToolDrift

part of Toolproof, the measurement layer for AI agent tooling

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. Changelog

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 SkillWorks, RuleStack and ToolDrift

part of Toolproof, the measurement layer for AI agent tooling

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. Changelog

BlockDex