Interface ChatItemCardContentProps

interface ChatItemCardContentProps {
    body?: null | string;
    children?: (string | DomBuilderObject | ExtendedHTMLElement | HTMLElement)[];
    classNames?: string[];
    codeReference?: null | ReferenceTrackerInformation[];
    contentProperties?: {
        codeBlockActions?: CodeBlockActions;
        onCodeBlockAction?: OnCodeBlockActionFunction;
        onCopiedToClipboard?: OnCopiedToClipboardFunction;
        onLinkClick?: ((url, e) => void);
    };
    hideCodeBlockLanguage?: boolean;
    onAnimationStateChange?: ((isAnimating) => void);
    renderAsStream?: boolean;
    testId?: string;
}

Properties

body?: null | string
children?: (string | DomBuilderObject | ExtendedHTMLElement | HTMLElement)[]
classNames?: string[]
codeReference?: null | ReferenceTrackerInformation[]
contentProperties?: {
    codeBlockActions?: CodeBlockActions;
    onCodeBlockAction?: OnCodeBlockActionFunction;
    onCopiedToClipboard?: OnCopiedToClipboardFunction;
    onLinkClick?: ((url, e) => void);
}

Type declaration

hideCodeBlockLanguage?: boolean
onAnimationStateChange?: ((isAnimating) => void)

Type declaration

    • (isAnimating): void
    • Parameters

      • isAnimating: boolean

      Returns void

renderAsStream?: boolean
testId?: string