Skip to content

GitDiffPanel

API reference and demos for GitDiffPanel.

Source

import { GitDiffPanel } from "@flanksource/clicky-ui/data";
Commits · Open in Storybook
Selectable With Badges And Custom Body · Open in Storybook
Selectable With Blocked Commit · Open in Storybook

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 — —