Version history preview
Browse document revisions, inspect changes and request restoration explicitly.
pro · Blocks · composite
When to use
- Use it when a page needs browse document revisions, inspect changes and request restoration explicitly.
- Choose it inside an authenticated product surface when the host application owns routing, persistence, and service calls.
Alternatives
- Choose empty-state instead when empty collections, search results and errors with a clear next action is the actual interface need, rather than version history.
Configure components.json and the @tidal-pro namespace before installing Pro components.
Installation
npx shadcn@latest add @tidal-pro/version-historyImport components/ui/tidal.css, components/ui/version-history.css. Wrap installed components in tidal-scope.
Preview

Minimal example
import"./components/ui/tidal.css";
import"./components/ui/version-history.css";
import{TidalVersionHistory}from"./components/ui/version-history";
export default()=><div className="tidal-scope"><TidalVersionHistory title={"Demo"} versions={[{id:"example",label:"Demo",author:"value",time:{label:"Demo"}}]}/></div>;API and props
TidalVersionHistory.title (required)ReactNodeRequired title value accepted by this exported component.
TidalVersionHistory.versions (required)ReadonlyArray<TidalVersionEntry>Required versions value accepted by this exported component.
TidalVersionHistory.confirmationReactNodeOptional confirmation value accepted by this exported component.
TidalVersionHistory.currentVersionIdstring | undefinedOptional current version id value accepted by this exported component.
TidalVersionHistory.descriptionReactNodeOptional description value accepted by this exported component.
TidalVersionHistory.emptyContentReactNodeOptional empty content value accepted by this exported component.
TidalVersionHistory.headingLevel"h2" | "h3" | "h4" | "h5" | "h6" | undefinedOptional heading level value accepted by this exported component.
TidalVersionHistory.labels{ current?: string; viewing?: string; changes?: string; preview?: string; restore?: string; restoring?: string; list?: string; open?: string; } | undefinedOptional labels value accepted by this exported component.
TidalVersionHistory.onPreviewRequest((version: TidalVersionEntry, event: MouseEvent<HTMLButtonElement>) => void) | undefinedCallback invoked when the preview request interaction is proposed.
TidalVersionHistory.onRestoreRequest((version: TidalVersionEntry, event: MouseEvent<HTMLButtonElement>) => void) | undefinedCallback invoked when the restore request interaction is proposed.
TidalVersionHistory.pendingVersionIdstring | undefinedOptional pending version id value accepted by this exported component.
TidalVersionHistory.previewReactNodeOptional preview value accepted by this exported component.
TidalVersionHistory.selectedVersionIdstring | undefinedOptional selected version id value accepted by this exported component.
Complete usage
Full example, stylesheet imports, API and accessibility documentation
Gotchas
- The host application owns data, validation, persistence, navigation, and service side effects described by this API.