040
Suggested edits marked up right inside your sentence, so you can keep or drop each one with a click or a key, and undo any call you change your mind on.
akadiff·suggestions·track changes
Run this in any project set up for the shadcn CLI. It copies the Redline source into your components folder, so the code is yours to change.
npx shadcn@latest add https://devl.dev/r/redline.jsonImport it and render it. Every prop has a typed default, so it works straight away, and you pass your own data when you’re ready.
import { Redline } from "@/components/redline";
export default function Page() {
return <Redline />;
}A free React component in the Writing collection, written in TypeScript with Tailwind CSS on coss ui. MIT licensed.
Read from the Redline source. Everything is optional unless it says required.
| Prop | Type | Default |
|---|---|---|
| segmentsrequired | DiffSegment[] | — |
| title | string | "Suggested edits" |
| onComplete | (text: string) => void | — |
| className | string | — |