spacehub

surshar / claude-code

Claude Code is an agentic coding tool that lives in your terminal, understands your codebase, and helps you code faster by executing routine tasks, explaining complex code, and handling git workflows - all through natural language commands.

Built by Anthropic · github.com/anthropics

claude-code / mods / diff / hooks / views / kit / ui / ui.ts
13 lines · 397 BRaw
1import type { ElementTable } from 'claude-code'
2
3/**
4 * The element constructors the pane draws with, destructured from the
5 * table `$.ui.resolve(e)` hands the render hook.
6 *
7 * The terminal and the desktop carry all four; the mobile app has no
8 * Select, so the pane never draws there.
9 */
10export type Ui = Pick<
11 ElementTable<'terminal' | 'desktop'>,
12 'Box' | 'Text' | 'Button' | 'Select'
13>