components/diff-view
@fungi.computer/caps / components/diff-view
components/diff-view
Section titled “components/diff-view”Type Aliases
Section titled “Type Aliases”DiffViewLine
Section titled “DiffViewLine”DiffViewLine =
Readonly<{kind:"add"|"context"|"file"|"hunk"|"remove";text:string; }>
One presentational diff line; the caller owns parsing.
DiffViewProps
Section titled “DiffViewProps”DiffViewProps =
object&Omit<HTMLAttributes<HTMLPreElement>>,"children">>
Props accepted by DiffView.
Type Declaration
Section titled “Type Declaration”lines: readonly
DiffViewLine[]
hiddenLines?
Section titled “hiddenLines?”
optionalhiddenLines?:number
Lines the caller omitted, shown as a trailing note.
Functions
Section titled “Functions”DiffView()
Section titled “DiffView()”DiffView(
__namedParameters):Element
A compact monospace diff with add/remove/hunk/file line tones.
Parameters
Section titled “Parameters”__namedParameters
Section titled “__namedParameters”Returns
Section titled “Returns”Element