Skip to content

VersionHistory

Stable

A list of earlier versions of your work, with who made each, when, and Preview and Restore buttons.

Also known as history, revisions, versions

Install with npm install @tattva/ui (setup), or copy the code from the kit in Downloads.

List with preview

Version history

  1. Version 4Current

    AI, Assistant2 min ago

    Tightened the headline

  2. Version 3

    Person, Maya10 min ago

    Changed the color of the button

  3. Version 2

    AI, AssistantYesterday

    Added a pricing section

  4. Version 1

    AI, AssistantYesterday

    First draft

Preview does not create a new version.

Press Preview on any older version. The banner offers Exit preview and Restore. Restore makes that version the current one.

When to use it

Lists earlier versions of a piece of work, newest first, with who made each one. Preview and Restore are separate, so people can look without changing anything.

Made of: Title · Preview banner · Version rows · Current label · Preview button · Restore button · Preview note

Use it for

  • A document, design or page that both the AI and people edit.
  • Looking at an older version before deciding to bring it back.
  • Telling AI edits apart from people's edits.

Not for

Do and avoid

Trip plan versions

  1. Version 3Current

    Person, PriyaToday, 10:42

    Fixed the hotel dates

  2. Version 2

    AIToday, 10:15

    Added a day in Porto

  3. Version 1

    Person, PriyaYesterday

    First plan

Preview does not create a new version.

Do. Newest first, with who made each one and what changed.

Trip plan versions

  1. Version 1

    Person, PriyaYesterday

    First plan

  2. Version 2

    AIToday, 10:15

    Added a day in Porto

  3. Version 3Current

    Person, PriyaToday, 10:42

    Fixed the hotel dates

Preview does not create a new version.

Avoid. Oldest first buries the latest work and confuses the numbers.

Do

  • Mark the current version in words, with no buttons on it.
  • Say that Preview does not create a version, so people feel safe trying it.
  • Show who made each version, so AI edits and human edits are easy to tell apart.
  • Show the previewed version in your own screen. The list only tells you which one through onPreviewChange.

Avoid

  • Do not restore when someone only previews. They are different actions.
  • Do not put the oldest version first. The numbering expects newest first.
  • Do not use amber on the preview banner. Nothing is waiting on the person.
  • Do not hide the banner. People need a clear way out of a preview.

On a phone

  • Each version is a row whose text has a 192px minimum width, so Preview and Restore wrap below the text on a narrow screen.
  • Preview and Restore keep their size and have a 44px tap area on a touch screen.
  • The preview bar at the top wraps, with its buttons under the text when needed.

Seen in products

  • In Figma and Figma Make every AI edit creates an auto-numbered, auto-named version that can be previewed without creating a new version.
  • A Figma forum thread reports versioning limits in Make.
  • Claude artifacts support editing drafts in place (release notes, Jun 2026).
  • Gemini Canvas and Claude artifacts offer versions.

Build your next AI screen with Tattva.

Free and open, with the code. Start in one line.

Get started