Docs Version History
Auditing and change control in legal documents, agreements and contracts.
About this block
What it's for
- Auditing and change control in legal documents, agreements and contracts.
- Revision history in knowledge base articles or internal documentation.
- Version comparison and restoration of prompts or specs in an ai-workspace.
For source code editing at the syntax tree level, use Code Diff Viewer.
Includes
- Version timeline
- Word level diff
- Paragraph diff
- Inline diff view
- Side by side diff view
- Version restore dialog
- Revision tagging
- Version filter search
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 docs-version-historyInstalls through shadcn and adapts the component to your design tokens.
shadcn CLI
npx shadcn@4.17.0 add @agentic-ui/docs-version-historyUsed 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.
- npm packages
lucide-react- Registry dependencies
lib-primitives- Files
7 files
- components/agentic-ui/docs-version-history/docs-version-history.tsx
- components/agentic-ui/docs-version-history/use-docs-history.ts
- components/agentic-ui/docs-version-history/types.ts
- components/agentic-ui/docs-version-history/restore-dialog.tsx
- components/agentic-ui/docs-version-history/diff-engine.ts
- components/agentic-ui/docs-version-history/document-diff-view.tsx
- components/agentic-ui/docs-version-history/version-timeline.tsx
Related components
Docs FAQ Block
Frequently asked questions section in help centers and technical support.
Details and live previewDocs PDF Viewer
Viewing and reviewing contracts, SLAs and agreements in SaaS platforms.
Details and live previewDocs Template Gallery
Gallery of document templates (contracts, proposals, reports) in a collaborative editor.
Details and live previewA11y Contrast Badge
Check in the browser whether the theme palette meets AA before opening the PR.
Details and live preview