ValyroUI Русская версия

Message Branches

Message versions and a conversation branch tree. Pro · AI chat and agents › Chat

ChatGPT-style switcher between the versions of an edited message or a regenerated reply.

Installation

npx valyro-cli@latest login
npx valyro-cli@latest add message-branches
npm install valyro-ui-pro

import 'valyro-ui-pro/styles.css';
import { MessageBranches } from 'valyro-ui-pro';

Props

PropTypeDefault
count *numberHow many versions the message has (edits or regenerations).
indexnumberShown version, 0-based.
defaultIndexnumberDefaults to the newest version.
onIndexChange(index: number) => voidCalled with the new index when it changes.
localestringBCP 47 locale for the numbers; defaults to the ThemeProvider's.
labelsPartial<MessageBranchesLabels>Overrides for the built-in English text; keys left out keep their defaults.

Related components

Previous: Chat Message · Next: Streaming Text · All AI chat and agents