For AI Agents
Hand your agent this brief or the ReUI MCP, not a screenshot. Installs with a ReUI Pro or Ultimate license.
Best for: Changes from 3 reviewers with an avatar, name and time per row, an Editing, Suggesting and Viewing select and a margin that becomes a Sheet
When to use
- Documents written and kept inside a product: launch briefs, wiki pages, contracts, specs and plans
- Review on the text itself, through tracked suggestions to accept or reject or threaded comments
- Shared writing with live teammates, or with an AI assistant whose edits arrive for review
When not to use
- Teammates co-edit one draft live and need to see each other's carets: use the Collaborative Editor block
- Suggestions come from an AI assistant that streams its edits into the page: use the AI Writing Assistant block
- The navigation layout around your pages, with no document editing in it: use the App Shell blocks
- A top bar with a title, avatars and actions above a page you already have: use the Navbar blocks
- A strip of formatting or alignment controls alone, with no document under it: use the Button Group component
Agent notes
CONTRACT,CONTRACT_METAandPEOPLEin data.tsx are the demo MSA, its header facts and the three reviewers behind the seeded suggestionsCURRENT_AUTHORsigns new suggestions andcurrentTimereturns the fixedDEMO_NOW, so new changes carry the demo timeContractEditortakes onlyclassNameandcontent, andonUpdatejust restamps the header, so persist the redlines yourself- Each page.tsx wraps the root in an
h-svhormin-h-svhcolumn; inside an app shell drop it and size the root throughclassName - Every schema starts from
createRichTextExtensionsin rich-text-extensions.ts; extend that list and keep it stable, asuseEditorcompares it by identity - Document typography is
RICH_TEXT_PROSEin rich-text-content.tsx, built on theme tokens; restyle headings, lists, code and links there
Third-party API docs
- Tiptap v3: API reference, docs, llms.txt
- Sonner v2: API reference, docs
https://web.dev.reui.io/blocks/application/rich-text-editor/rich-text-editor-3.mdget_block("rich-text-editor-3")npx shadcn@latest add @reui/rich-text-editor-3Shadcn Components in the Contract Redlines Block
Dependencies
- @tiptap/core
- @tiptap/extension-highlight
- @tiptap/extension-list
- @tiptap/extension-text-align
- @tiptap/extensions
- @tiptap/pm
- @tiptap/react
- @tiptap/starter-kit
- cn
- sonner
Shadcn Contract Redlines Block
Tiptap Contract Redline Editor With Suggesting Mode and a Sticky Review Margin. Part of the ReUI Shadcn Application Rich Text Editor blocks collection.
Chromeless contract editor on Tiptap where edits become attributed insert, delete and replace suggestions: accept or reject each or all, step through changes, Final and Original previews, sticky toolbar header. For redlines, legal review, approvals.
It is composed from Alert Dialog, Avatar, Badge, Button, Button Group, Card, Checkbox, Dropdown Menu, and more, so every part of it is a primitive you can restyle with your own design tokens.
What You Can Build With the Contract Redlines Block
- Install it with the ReUI registry command in the toolbar above, then swap the placeholder content, data wiring, and business logic for your own.
- Compare it across all eight ReUI styles and both the Base UI and Radix bases in the customizer before committing to one direction.
- Combine it with the other Shadcn Application Rich Text Editor blocks to assemble a full screen instead of a single section.
All Shadcn Application Rich Text Editor Blocks
The rest of this category, each on its own page with a live preview, the components it is built from, and the install command.
- Document Editor Tiptap Document Editor With Formatting Toolbar, Link Bubble and Task Lists
- Wiki Page Editor Tiptap Page Editor With Slash Commands, Mentions, Tables and an Outline Rail
- Collaborative Editor Tiptap Collaborative Editor With Live Cursors, Presence, Offline Merge and Comments
- AI Writing Assistant Tiptap AI Document Assistant With Streamed Suggestions, Step Trace and Review Dock
Related Shadcn Application Block Categories
- App Shell (35) App shell layouts with sidebar, rail, or top bar navigation for dashboards, settings panels, and multi-page apps.
- Auth (20) Login, register, forgot password, and two-factor authentication page layouts.
- Card (43) Card components for content display, data summaries, and interactive elements.
- Dashboard (8) Dashboard components and layouts that combine stats, charts, and tables into a complete overview screen.
- Dialog (14) Dialog components for modal windows, alerts, confirmations, and content overlays.
- Empty State (14) Empty state screens and no-data placeholders with recovery actions, onboarding prompts, and contextual guidance.
All Shadcn Block Groups
Browse the full ReUI Shadcn blocks library by product surface. Each group bundles category-level blocks you can mix and match across your project.
- Shadcn Application Blocks (303) Browse 303 Shadcn Application blocks across 23 categories.
- Shadcn Data Grid Blocks (47) Browse 47 Shadcn Data Grid blocks across 9 categories.
- Shadcn Charts Blocks (52) Browse 52 Shadcn Charts blocks across 10 categories.
- Shadcn Solutions Blocks (76) Browse 76 Shadcn Solutions blocks across 11 categories.
- Shadcn AI & Agents Blocks (22) Browse 22 Shadcn AI & Agents blocks across 3 categories.
- Shadcn eCommerce Blocks (87) Browse 87 Shadcn eCommerce blocks across 13 categories.
- Shadcn Marketing Blocks (67) Browse 67 Shadcn Marketing blocks across 8 categories.
Frequently Asked Questions
When should I use the Contract Redlines block?
Use it for changes from 3 reviewers with an avatar, name and time per row, an Editing, Suggesting and Viewing select and a margin that becomes a Sheet.
The Rich Text Editor category fits:
- Documents written and kept inside a product: launch briefs, wiki pages, contracts, specs and plans
- Review on the text itself, through tracked suggestions to accept or reject or threaded comments
- Shared writing with live teammates, or with an AI assistant whose edits arrive for review
For teammates co-edit one draft live and need to see each other's carets, use the Collaborative Editor block. For suggestions come from an AI assistant that streams its edits into the page, use the AI Writing Assistant block. For the navigation layout around your pages, with no document editing in it, use the App Shell blocks. For a top bar with a title, avatars and actions above a page you already have, use the Navbar blocks. For a strip of formatting or alignment controls alone, with no document under it, use the Button Group component.
What is the Contract Redlines block built with?
Can I restyle the Contract Redlines block?
How should I use Shadcn rich text editor blocks in a real project?
Start building with ReUI Pro today.
Every Pro block, every style, and every future addition, with one license for unlimited projects.
From $249, once. Lifetime updates.