File Diff
Inline diff card for real file changes. Pass file path and rows — no silent demo hunk.
Real data
Each row:
old
,
cur
(line numbers),
type
(
ctx
/
add
/
del
),
and
text
.
app/Models/User.php
+2
-1
8
8
class User extends Authenticatable
9
-
{
9
+
{
10
+
use HasApiTokens;
10
12
use HasFactory;
<neura::file-diff
:file="\$path"
:rows="\$diffRows"
/>
Empty
src/auth.ts
+0
-0
No changes
<neura::file-diff :file="\$path" :rows="[]" />
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| file | string | '' | Path in the header |
| rows | array | [] | Lines with old, cur, type, text |