# Docs Version History

Auditing and change control in legal documents, agreements and contracts.

- id: `docs-version-history`
- Page: https://agentic-ui-kit.com/components/docs-version-history
- Live preview: https://agentic-ui-kit.com/live/component/docs-version-history

## Install

```bash
agentic-ui add docs-version-history
npx shadcn@4.17.0 add @agentic-ui/docs-version-history
```

## Metadata

- **Level:** block
- **Category:** block
- **Installable in:** Radix UI (registry variant new-york)
- **Capabilities:** version-timeline, word-level-diff, paragraph-diff, inline-diff-view, side-by-side-diff-view, version-restore-dialog, revision-tagging, version-filter-search, keyboard-navigation
- **Intents:** explore-detail, audit-trail, compare-over-time
- **Suits domains:** devtools, ai-workspace, saas, operations
- **Interaction:** keyboard-navigation, view-switching, version-restore, search-filter
- **Screen role:** detail
- **Density:** compact
- **Dark mode:** yes
- **Use it 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, traceability of collaborative changes to corporate policies in a SaaS panel
- **Avoid when:** source code editing at the syntax tree level (use code-diff-viewer), comparison of continuous time series (use chart compare-over-time)
- **Preserve when adapting:** diff-grammar, timeline-structure, restore-confirmation, keyboard-navigation
- **Replace when adapting:** document-content, author-roles, token-palette, locale
- **Adaptation effort:** low
- **Coupling:** low
- **Quality score:** 9.2/10
- **Quality breakdown:** visual 9/10, responsive 9/10, accessibility 9/10, code 9/10
- **Uses primitives:** alert, alert-dialog, avatar, badge, button, card, input, scroll-area, separator, skeleton, tooltip
- **npm dependencies (registry):** lucide-react@0.577.0
- **Registry dependencies:** lib-primitives
