Ivy.Widgets.DiffView
1.3.17
dotnet add package Ivy.Widgets.DiffView --version 1.3.17
NuGet\Install-Package Ivy.Widgets.DiffView -Version 1.3.17
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Ivy.Widgets.DiffView" Version="1.3.17" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Ivy.Widgets.DiffView" Version="1.3.17" />
<PackageReference Include="Ivy.Widgets.DiffView" />
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Ivy.Widgets.DiffView --version 1.3.17
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Ivy.Widgets.DiffView, 1.3.17"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Ivy.Widgets.DiffView@1.3.17
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Ivy.Widgets.DiffView&version=1.3.17
#tool nuget:?package=Ivy.Widgets.DiffView&version=1.3.17
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
Ivy.Widgets.DiffView
A diff viewer widget for Ivy Framework powered by react-diff-view.
Installation
dotnet add package Ivy.Widgets.DiffView
Widgets
DiffView
A unified/split diff viewer component for displaying git-style diffs.
External React Libraries Used:
- react-diff-view - Diff viewer component
- unidiff - Unified diff parser
Basic Usage
using Ivy.Widgets.DiffView;
// Simple unified diff
new DiffView()
.Diff(myDiffString)
// Split view with revision names
new DiffView()
.Diff(myDiffString)
.Split()
.OldRevision("a/file.txt")
.NewRevision("b/file.txt")
// With line click handler
new DiffView()
.Diff(myDiffString)
.OnLineClick(line => Console.WriteLine($"Line {line} clicked"))
Props
| Prop | Type | Default | Description |
|---|---|---|---|
Diff |
string? |
null |
Unified diff string (git diff output) |
ViewType |
DiffViewType |
Unified |
View mode (Unified or Split) |
Language |
string? |
null |
Language hint for syntax highlighting |
OldRevision |
string? |
null |
Old file revision name |
NewRevision |
string? |
null |
New file revision name |
Events
| Event | Args | Description |
|---|---|---|
OnLineClick |
int |
Fired when a line gutter is clicked |
Development
Building
Install frontend dependencies:
cd frontend pnpm installBuild the frontend:
pnpm buildBuild the project from the root folder:
dotnet build
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net10.0
- Ivy (>= 1.3.17)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories (1)
Showing the top 1 popular GitHub repositories that depend on Ivy.Widgets.DiffView:
| Repository | Stars |
|---|---|
|
Ivy-Interactive/Ivy-Tendril
Agent agnostic coding orchestration
|
| Version | Downloads | Last Updated |
|---|---|---|
| 1.3.17 | 48 | 8/2/2026 |
| 1.3.16 | 121 | 7/28/2026 |
| 1.3.15 | 118 | 7/26/2026 |
| 1.3.13 | 94 | 7/25/2026 |
| 1.3.12 | 98 | 7/23/2026 |
| 1.3.11 | 92 | 7/23/2026 |
| 1.3.10 | 101 | 7/18/2026 |
| 1.3.9 | 100 | 7/14/2026 |
| 1.3.8 | 139 | 7/10/2026 |
| 1.3.7 | 100 | 7/10/2026 |
| 1.3.6 | 112 | 7/3/2026 |
| 1.3.5 | 121 | 7/3/2026 |
| 1.3.4 | 138 | 7/2/2026 |
| 1.3.3 | 106 | 7/2/2026 |
| 1.3.2 | 94 | 7/2/2026 |
| 1.3.1 | 151 | 6/29/2026 |
| 1.3.0 | 111 | 6/29/2026 |
| 1.2.72 | 130 | 6/27/2026 |
| 1.2.71 | 107 | 6/26/2026 |
| 1.2.70 | 170 | 6/25/2026 |
Loading failed