ChatMessageProps
Unpublished development API. This package is under development and is not available as a published release.
Passive role presentation; content and controls remain consumer-owned.
import type { ChatMessageProps } from '@threadplane/react/chat';Declaration
export interface ChatMessageProps {
readonly afterContent?: ReactNode;
readonly beforeContent?: ReactNode;
readonly children?: ReactNode;
readonly className?: string;
readonly controls?: ReactNode;
readonly current?: boolean;
readonly label?: string;
readonly prevRole?: ChatMessageRole;
readonly role: ChatMessageRole;
readonly speaker?: string;
readonly streaming?: boolean;
}Members
afterContent
readonly afterContent?: ReactNode;beforeContent
readonly beforeContent?: ReactNode;children
readonly children?: ReactNode;className
readonly className?: string;controls
readonly controls?: ReactNode;current
readonly current?: boolean;label
readonly label?: string;prevRole
Immediately preceding supplied row role; undefined omits data-prev-role.
readonly prevRole?: ChatMessageRole;role
readonly role: ChatMessageRole;speaker
readonly speaker?: string;streaming
readonly streaming?: boolean;