Diff Apply Feature

A feature section about reviewing what an agent writes. Beside three plain points, a Diff Apply editor plays the agent's tracking change into a real component, line by line, then waits for Keep or Undo on each change, with a running count of what was kept underneath.

Feature Section

Built with Diff Apply

Uses motion, clsx, tailwind-merge

Open in ChatGPTOpen in Claude

Installation

The CLI writes components/diff-apply-feature.tsx, the components it's built with (components/ui/diff-apply.tsx) and lib/utils.ts, and installs motion, clsx and tailwind-merge. It needs the @keyframeui registry in components.json; add it once per project.

npx shadcn@latest add @keyframeui/diff-apply-feature

Then put it where the section goes. The copy, links and data sit in constants at the top of the file, so making it yours starts there.

app/page.tsx
import { DiffApplyFeature } from "@/components/diff-apply-feature";

export default function Page() {
  return <DiffApplyFeature />;
}

Built with

Each of these is a component on its own, with its own examples and props. The block installs them for you.