CodeDiff
Block
Code Diff Block from the Code package.
Loading CodeDiffBlock…
Source code
Waiting for the preview before loading source files · 2 of 2
Properties
Public properties derived from the component’s TypeScript signature.
| Property | Type | Default |
|---|---|---|
linesRequired | readonly CodeDiffLine[] | — |
filenameOptional | string | — |
modeOptional | "split" | "unified" | "unified" |
selectedLineIdOptional | string | null | null |
onSelectLineOptional | ((line: CodeDiffLine) => void) | — |
accessibilityLabelOptional | string | "Code diff" |
emptyLabelOptional | string | "No changed lines" |
customizeOptional | UiCustomization | — |