GitDiffPanel
API reference and demos for GitDiffPanel.
Import
Section titled “Import”import { GitDiffPanel } from "@flanksource/clicky-ui/data";The props table documents the component-specific surface. Standard DOM attributes inherited from React, such as className, event handlers, and accessibility attributes, may also be accepted when the component’s prop type extends a native element.
| Prop | Type | Default | Description |
|---|---|---|---|
className |
string |
— | — |
emptyLabel |
string |
No text diff available |
— |
error |
string |
— | — |
lineWidgets |
DiffLineWidget[] |
— | Forwarded to `CodeDiff`: rows rendered under the matching diff line. |
loading |
boolean |
— | — |
maxHeightClassName |
string |
max-h-[520px] |
— |
onLineAction |
(…) => void |
— | Forwarded to `CodeDiff`: shows a gutter "+" button per numbered line. |
payload |
GitDiffPayload | null |
— | — |