React code diff viewer that tints added lines green and removed lines red with plus and minus gutters, context lines and an optional filename header.
npx shadcn@latest add @minidev/diff-view
diff-view