MCPcopy Index your code
hub / github.com/CodebuffAI/codebuff / Separator

Function Separator

cli/src/components/separator.tsx:23–40  ·  view source on GitHub ↗
({
  width,
  widthOffset = 0,
  char = '─',
  color,
})

Source from the content-addressed store, hash-verified

21}
22
23export const Separator: React.FC<SeparatorProps> = ({
24 width,
25 widthOffset = 0,
26 char = '─',
27 color,
28}) => {
29 const theme = useTheme()
30 const separatorWidth = Math.max(1, width - widthOffset)
31 const fgColor = color || theme.border
32
33 return (
34 <box style={{ height: 1, flexShrink: 0 }}>
35 <text style={{ wrapMode: 'none' }}>
36 <span fg={fgColor}>{char.repeat(separatorWidth)}</span>
37 </text>
38 </box>
39 )
40}

Callers

nothing calls this directly

Calls 1

useThemeFunction · 0.90

Tested by

no test coverage detected