DotNaos UI
CodeDiff

Block

Code Diff Block from the Code package.

Source code

Waiting for the preview before loading source files · 2 of 2

Properties

Public properties derived from the component’s TypeScript signature.

PropertyTypeDefault
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