Skip to content
Chat & AI

Branch

Step through alternative assistant generations.

Import

tsx
import { Branch } from "@cronus-ui/ui";
bash
npx cronus-ui add branch

Examples

.cronus

No audit fixture declares this family in .cronus yet.

React onlyParity: Not portedParity scoreboard

API Reference

Generated from the component's exported types.

BranchLabels

Skip BranchLabels props table
PropTypeDefaultDescription
previous
string——
next
string——
page
string——

BranchProps

Extends HTMLAttributes<HTMLDivElement>

Skip BranchProps props table
PropTypeDefaultDescription
defaultBranch
number0—
onBranchChange
(branchIndex: number) => void——
labels
BranchLabels—Override default English strings.
className
string—Additional class names merged onto the root.
children
ReactNode—Contents of the component.
id
string—DOM id of the root element.

BranchMessagesProps

Extends HTMLAttributes<HTMLDivElement>

Skip BranchMessagesProps props table
PropTypeDefaultDescription
className
string—Additional class names merged onto the root.
children
ReactNode—Contents of the component.
id
string—DOM id of the root element.

BranchSelectorProps

Extends HTMLAttributes<HTMLDivElement>

Skip BranchSelectorProps props table
PropTypeDefaultDescription
from
BranchRole"assistant"—
className
string—Additional class names merged onto the root.
children
ReactNode—Contents of the component.
id
string—DOM id of the root element.

BranchPreviousProps

Extends ComponentProps<typeof Button>

Skip BranchPreviousProps props table
PropTypeDefaultDescription
variant
string—Visual variant.
size
string—Control size.
asChild
boolean—Render as the child element via Slot.
disabled
boolean—Disables pointer and keyboard interaction.
type
string—Native type of the underlying element.
children
ReactNode—Contents of the component.
className
string—Additional class names merged onto the root.

BranchNextProps

Extends ComponentProps<typeof Button>

Skip BranchNextProps props table
PropTypeDefaultDescription
variant
string—Visual variant.
size
string—Control size.
asChild
boolean—Render as the child element via Slot.
disabled
boolean—Disables pointer and keyboard interaction.
type
string—Native type of the underlying element.
children
ReactNode—Contents of the component.
className
string—Additional class names merged onto the root.

BranchPageProps

Extends HTMLAttributes<HTMLSpanElement>

Skip BranchPageProps props table
PropTypeDefaultDescription
className
string—Additional class names merged onto the root.
children
ReactNode—Contents of the component.
id
string—DOM id of the root element.