Download mods/diff/hooks/views/sections/dim-note/dim-note.tsx from SaylorTwift/claude-code: direct link, hf CLI and curl.
- Browser
- Download file 513 Bytes
-
https://huggingface.co/SaylorTwift/claude-code/resolve/main/mods/diff/hooks/views/sections/dim-note/dim-note.tsx
- Command line
-
hf download hf://SaylorTwift/claude-code/mods/diff/hooks/views/sections/dim-note/dim-note.tsx
-
curl -L -o dim-note.tsx https://huggingface.co/SaylorTwift/claude-code/resolve/main/mods/diff/hooks/views/sections/dim-note/dim-note.tsx
513 Bytes
| /* @jsxRuntime classic */ | |
| /* @jsx h */ | |
| /* @jsxFrag Fragment */ | |
| import type { RenderElement } from 'claude-code' | |
| import type { Kit } from '../../kit' | |
| /** | |
| * One dim line of the pane: a hint, an elision count, a base label. | |
| * | |
| * @param kit the drawing's kit; its elements draw the line | |
| * @param text the line | |
| * @returns the element | |
| */ | |
| export function dimNote(kit: Kit, text: string): RenderElement { | |
| const { Text } = kit.ui | |
| return ( | |
| <Text dimColor wrap="truncate-end"> | |
| {text} | |
| </Text> | |
| ) | |
| } | |