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 / divider.tsx
22 lines · 486 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 * A dim rule across the body, between the list and the selected file.
10 *
11 * @param kit the elements and the width
12 * @returns the rule
13 */
14export function divider(kit: Kit): RenderElement {
15 const { Text } = kit.ui
16
17 return (
18 <Text dimColor wrap="truncate-end">
19 {'─'.repeat(Math.max(1, kit.columns))}
20 </Text>
21 )
22}