Expand description
Diff component - Git-style diff display.
The Diff component displays file changes in unified diff format, with support for line numbers, colors, and chunk headers.
§When to use Diff
- Showing code changes before committing
- Comparing file versions
- Displaying patch content
§See also
SyntaxHighlight— Code without diff markersMarkdown— Formatted text display
Structs§
- Diff
- A component that displays a diff.
- Diff
Line - A single line in a diff.
- Diff
Props - Properties for the Diff component.
Enums§
- Diff
Line Type - Type of a diff line.
- Diff
Style - Display style for diffs.
Functions§
- diff_
lines - Helper to create a simple diff from old/new content.