About
A hunk-by-hunk code diff viewer that lets a user accept or reject each changed block of an AI-suggested edit and get back the merged result.
Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Diff Review to your project and fits it to your theme.
Code
How Diff Review is used: the demo's code. The component's own source comes with a free account.
Usage.tsx
import { DiffReview, SAMPLE_DIFF } from "@/components/ui/diff-review";
export default function DiffReviewDemo() {
return (
<div className="flex w-full items-center justify-center p-8">
<DiffReview {...SAMPLE_DIFF} />
</div>
);
}
















