DiffView
Two versions in one column: removed lines on red, added on green, changed words marked, unchanged runs folded.
Before → after2 lines added, 2 removed
<div className="w-560 max-w-full">
<DiffView title="Before → after" lang="json" before={json(credential)} after={json(moved)} wrap />
</div>import { DiffView } from "@logicplanes/kaeso-ui";Props
afterstringThe new version.
beforestringThe old version.
contextnumber = 3Unchanged lines kept around each change before the rest folds (3 by default).
copyboolean = trueHide the copy circle, which copies the diff with + and - markers.
langCodeLang = textThe language of both versions to highlight (
textby default).resolveCodeLangturns a fence name such aspyorshinto one.lineNumbersbooleanShows the old and the new line numbers.
surface"well" | "plain" = wellOn a flat plate (
well) or on the panel itself (plain).titleReactNodeA name in the title bar, beside the count of added and removed lines.
wrapboolean = falseLong lines wrap instead of scrolling sideways, keeping their indent: values in a narrow column such as a sheet.