AI Suggestion Diff
Support copilot that suggests improvements to ticket drafts with granular accept or reject per change.
About this block
What it's for
- Support copilot that suggests improvements to ticket drafts with granular accept or reject per change.
- AI-assisted content editor where the writer reviews tone, clarity and grammar proposals.
- CRM assistant that adjusts sales emails before sending, allowing individual changes to be approved.
Includes
- Per change accept reject
- Inline diff view
- Split diff view
- Batch accept all
- Batch reject all
- Change navigation
- Resulting preview
- Empty state
Works with
- Radix UI primitives (the registry variant it ships in)
- React 19, Next.js App Router and Tailwind CSS 4, installed with the shadcn CLI
- Your theme tokens, in light and dark mode
Install
Included with Agentic UI Kit (one-time license). Install needs your license key: see pricing · connect your project.
Agentic UI CLI
agentic-ui add ai-suggestion-diffInstalls through shadcn and adapts the component to your design tokens.
shadcn CLI
npx shadcn@4.17.0 add @agentic-ui/ai-suggestion-diffUsed in
A standalone component: drop it into any screen.
- Type
- Block
- Variants
- Radix UI
- Themes
- Light and dark
- Widths
- Preview it at desktop, tablet and mobile widths above.
- Motion
- Animated, with a reduced-motion fallback
- npm packages
- None beyond your project's React and Next.js
- Registry dependencies
lib-primitives- Files
1 file
- components/agentic-ui/ai-suggestion-diff/index.tsx
Related components
AI Action Confirmation
Operations agent that asks to drop production tables and shows the rows, size and last use of each one.
Details and live previewAI Agent Memory Viewer
Assistant settings where the user reviews and corrects what the agent knows about them (time zone, style preferences).
Details and live previewAI Agent Status Badge
Header of an agent run that moves from working to waiting-approval and opens the approval on click.
Details and live previewAI Chat Empty State
Assistant chat with no messages that offers four starting points configured by the workspace.
Details and live preview