Thinking UI

Branch SwitcherPRO

Move between regenerated responses with a direction-aware slide.

Code

2 files · 136 lines of TypeScriptPRO

Branch Switcher is part of Pro

Get its source, the one-paste agent prompt and all 113 components, for a one-time $99.

Motion notes

  • Going forward slides content left; going back slides it right. Direction matches the arrow.
  • The container animates its height, so versions of different lengths don't jump.
  • The version counter rolls with Animated Number.

Usage

Example
<BranchSwitcher versions={message.versions} />

Props

PropTypeDefaultDescription
versionsReactNode[]—Each version of the response.
indexnumber—Controlled index.
onIndexChange(index: number) => void—Called on navigation.