TimelineProps
Unpublished development API. This package is under development and is not available as a published release.
Supplies ordered checkpoints, controlled selection, and an optional complete-row rendering override.
import type { TimelineProps } from '@threadplane/react/chat';Declaration
export interface TimelineProps {
readonly className?: string;
readonly items: readonly TimelineItem[];
readonly label?: string;
readonly onFork?: (id: string) => void;
readonly onReplay?: (id: string) => void;
readonly onSelect: (id: string) => void;
readonly renderItem?: (item: TimelineItem, isSelected: boolean, index: number) => ReactNode;
readonly selectedId?: string | null;
}Members
className
readonly className?: string;items
readonly items: readonly TimelineItem[];label
readonly label?: string;onFork
Adds a Fork button to each default row, in the same way.
readonly onFork?: (id: string) => void;onReplay
Adds a Replay button to each default row. It receives the row's id;
running anything from that checkpoint is the application's job.
readonly onReplay?: (id: string) => void;onSelect
readonly onSelect: (id: string) => void;renderItem
Replaces the complete row; the owner supplies controls and accessibility.
readonly renderItem?: (item: TimelineItem, isSelected: boolean, index: number) => ReactNode;selectedId
readonly selectedId?: string | null;