CitationsProps
Unpublished development API. This package is under development and is not available as a published release.
Borrowed unique provider citations and optional accepted Markdown source definitions.
import type { CitationsProps } from '@threadplane/react/chat';Declaration
export interface CitationsProps {
readonly citations: readonly Citation[];
readonly className?: string;
readonly collapsible?: boolean;
readonly label?: string;
readonly preview?: boolean;
readonly renderCard?: (citation: Citation) => ReactNode;
readonly snapshot?: MarkdownSnapshot;
}Members
citations
readonly citations: readonly Citation[];className
readonly className?: string;collapsible
Literal true enables an initially closed Sources panel with local presentation state.
readonly collapsible?: boolean;label
readonly label?: string;preview
readonly preview?: boolean;renderCard
Replace row contents before preview with the latest borrowed Citation. Null, false and undefined intentionally render no contents or fallback. Rendering may repeat; return a component to own hooks and local state.
readonly renderCard?: (citation: Citation) => ReactNode;snapshot
Borrow accepted Markdown definitions to merge and sort Sources by index.
readonly snapshot?: MarkdownSnapshot;