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 / sections / dim-note / dim-note.tsx
23 lines · 513 BRaw
1/* @jsxRuntime classic */
2/* @jsx h */
3/* @jsxFrag Fragment */
4import type { RenderElement } from 'claude-code'
5
6import type { Kit } from '../../kit'
7
8/**
9 * One dim line of the pane: a hint, an elision count, a base label.
10 *
11 * @param kit the drawing's kit; its elements draw the line
12 * @param text the line
13 * @returns the element
14 */
15export function dimNote(kit: Kit, text: string): RenderElement {
16 const { Text } = kit.ui
17
18 return (
19 <Text dimColor wrap="truncate-end">
20 {text}
21 </Text>
22 )
23}