You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+3-1Lines changed: 3 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -68,6 +68,7 @@ class Diff extends PureComponent {
68
68
|newVlaue |`string`|`''`|New value as string. |
69
69
|splitView |`boolean`|`true`|Switch between `unified` and `split` view. |
70
70
|disableWordDiff |`boolean`|`false`|Show and hide word diff in a diff line. |
71
+
|hideLineNumbers |`boolean`|`false`|Show and hide line numbers. |
71
72
|renderContent |`function`|`undefined`|Render Prop API to render code in the diff viewer. Helpful for [syntax highlighting](#syntax-highlighting)|
72
73
|onLineNumberClick |`function`|`undefined`|Event handler for line number click. `(lineId: string) => void`|
73
74
|hightlightLines |`array[string]`|`[]`|List of lines to be highlighted. Works together with `onLineNumberClick`. Line number are prefixed with `L` and `R` for the left and right section of the diff viewer, respectively. For example, `L-20` means 20th line in the left pane. To highlight a range of line numbers, pass the prefixed line number as an array. For example, `[L-2, L-3, L-4, L-5]` will highlight the lines `2-5` in the left pane. |
0 commit comments