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 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;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;