MCPcopy Create free account
hub / github.com/MaxMiksa/Gravity / CodeLineProps

Interface CodeLineProps

packages/ui/src/code-block/CodeBlock.tsx:121–125  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

119// ===== 逐行渲染子组件 =====
120
121interface CodeLineProps {
122 tokens: HighlightToken[]
123 /** 该行的原始文本(token 未覆盖部分作为 fallback) */
124 rawLine: string
125}
126
127/** 单行代码渲染(memo 避免已稳定行重复渲染) */
128const CodeLine = React.memo(function CodeLine({ tokens, rawLine }: CodeLineProps): React.ReactElement {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected