A file path followed by its +added −removed line counts — the per-file summary a code review or an
agent's edit log shows. Long paths truncate with an ellipsis; the counts never do.
tsx
src/app/dashboard/page.tsx12 added 3 removed
<DiffChip added={12} removed={3} />added
removed
Accessibility
The signs are decorative: a screen reader hears "12 added" and "3 removed" instead of "plus 12, minus 3".
Examples
tsx
src/app/dashboard/page.tsx12 added 3 removed
<DiffChip path="src/app/dashboard/page.tsx" added={12} removed={3} />Props
| Prop | Type | Default | Description |
|---|---|---|---|
| added * | number | — | Lines added. |
| path * | readonly | — | File path or name the diff belongs to. |
| removed * | number | — | Lines removed. |