186
A document where AI agents write alongside you: coloured cursors with name tags glide between words, an agent types its suggestion letter by letter for you to accept or reject, and comments sit in the margin next to the lines they're about.
akadocument editor·collaboration
Run this in any project set up for the shadcn CLI. It copies the Co-writing Doc source into your components folder, so the code is yours to change.
npx shadcn@latest add https://devl.dev/r/co-writing-doc.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 { CoWritingDoc } from "@/components/co-writing-doc";
export default function Page() {
return <CoWritingDoc />;
}A free React screen in the Product collection, written in TypeScript with Tailwind CSS on coss ui. MIT licensed.
Read from the Co-writing Doc source. Everything is optional unless it says required.
| Prop | Type | Default |
|---|---|---|
| title | string | "Orbit Calendar: launch narrative" |
| people | Collaborator[] | defaultPeople |
| comments | DocComment[] | defaultComments |
| suggestions | DocSuggestion[] | defaultSuggestions |
| writer | string | "quill" |
| className | string | — |