DiffStats
Building blocks of the diff file rows, exported for summaries outside DiffReview, such as a turn summary or a commit dialog. DiffStats prints +N −M in green and red monospace; size is the text size, xs by default. FileStatusBadge is a one-letter badge (A, M, D, R) colored by status, with the full label in a tooltip and as the accessible name; untracked shows a teal U instead. FileIcon shows a file type icon for TypeScript, JavaScript and JSON files and a generic file icon otherwise; size is in px. getFileStatusLabel picks the status label from diff labels, and computeFileStats / summarizeChanges count lines for you.
Getting Started
$pnpm add @sinups/ai-kit @mantine/core @mantine/hooks @tabler/icons-reactExamples
File rows
API reference
Prop
Type
Required
additions
number
Yes
Added lines
deletions
number
Yes
Removed lines
size
MantineSize
No
Text size, `xs` by default