Component libraryVersion history
Components/Blocks

Version history

Pro

Browse document revisions, inspect changes and request restoration explicitly.

npx shadcn@latest add @tidal-pro/version-history
Desktop viewport

Installation

Pro source is gated. Configure the @tidal-pro registry using the agent guide. Create an access key from your account after purchasing.

Terminal
npx shadcn@latest add @tidal-pro/version-history

Import components/ui/tidal.css, components/ui/version-history.css, components/ui/status-badge.css, components/ui/collapsible-panel.css, then add the component inside a tidal-scope wrapper. Its scoped design tokens keep it independent of your existing CSS.

Usage

Complete example source · Dependency and asset manifest

Loading the complete example…

API & behavior

Consumer-owned ordered versions require unique id, label, author and exact time label with optional dateTime. Optional summary, Changes disclosure, native href/link props/ref, disabled, preview/restore button props/refs. Optional currentVersionId, selectedVersionId, pendingVersionId, preview and confirmation slots; bounded headingLevel and native section props/ref. Restore is absent for the current version; a pending ID disables restoration requests and marks the matching action busy. Native caller handlers run before callbacks and can prevent them; native/ARIA disabled states normalize, including unavailable links with no href and suppressed click handlers. Callbacks only request preview/restore; the consumer owns confirmation, current version, history, errors, storage and actual restoration. No data mutation or history ordering is invented.

Style with the --t-* CSS variables. Set data-theme="dark" on your tidal-scope wrapper for a dark surface. Motion respects the system’s reduced-motion preference.

Building with an agent?Give it the installation guide and component catalog.