Skip to content

VersionPager

Stable

Previous and next buttons with a count like 1/3, for the versions of one message.

Also known as branch picker, response versions, regenerate pager, pagination

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

Default

Starts on the latest version.

When to use it

Steps through the versions of one message, made by editing it or asking again. The count is small so the message itself stays the focus.

Made of: Previous button · Count · Next button · Edited label · Branch button

Use it for

  • A message that was edited, so the earlier wording is still there to look at.
  • A reply that was written again, so people can compare the attempts.
  • Starting a new chat from one version, with the branch button.

Not for

  • Going back to an earlier point in a long piece of work: use CheckpointList.
  • Switching between an AI suggestion and the person's own edit: use RevertToggle.
  • A list of saved versions of a document or design: use VersionHistory.

Do and avoid

Assistant: Your flight lands at 9:40. The hotel lets you check in from 2 pm.
Do. A small count shows which version you are reading.
Assistant: Your flight lands at 9:40. The hotel lets you check in from 2 pm.
‹›
Avoid. Arrows with no count leave people lost among versions.

Do

  • Keep the pager next to the message it belongs to.
  • Change the message text with the version so the count and text match.
  • Offer a branch button only if your product can start a separate chat.

Avoid

  • Do not use it for unrelated messages. It is for versions of one message.
  • Do not hide the count. The position is the point of the control.
  • Do not move the cursor when the version changes. People should be able to keep clicking.

On a phone

  • The pager wraps onto a second line if the edited label and branch button do not fit.
  • The previous and next buttons keep their size and have a 44px tap area on a touch screen.
  • Tapping steps one version at a time; there is no swipe, so keep the pager next to the message it changes.

Seen in products

  • ChatGPT shipped Branch in new chat on web in September 2025. Forking at a message starts a new independent thread and leaves the original intact.
  • ChatGPT shows edits and regenerations as sibling versions in a 1/3 style pager (secondary source).
  • Character.ai lets people swipe for alternate replies, 30 per message on free and 100 on C.AI+, and Rewind to here deletes everything after a chosen message.

Build your next AI screen with Tattva.

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

Get started