Package: @hexos/react-ui

Props for the ChatWindow component.

interface ChatWindowProps {
    config?: AgentConfig;
    className?: string;
    header?: React.ReactNode;
    emptyState?: React.ReactNode;
    renderMessage?: (message: AgentMessage, index: number, isStreaming: boolean) => React.ReactNode;
    showReasoning?: boolean;
    renderInput?: (props: {
    onSubmit: (content: string) => void;
    disabled: boolean;
  }) => React.ReactNode;
    showAgentBadges?: boolean;
    enableMessageActions?: boolean;
    variant?: 'default' | 'floating' | 'fullscreen' | 'sidebar';
    placeholder?: string;
    showHandoffs?: boolean;
    handoffVariant?: 'inline' | 'card';
    showAgentStatus?: boolean;
    agents?: AgentInfo[];
    suggestions?: string[];
    suggestionsTitle?: string;
}

config

className

string
React.ReactNode

emptyState

React.ReactNode

renderMessage

(message: AgentMessage, index: number, isStreaming: boolean) => React.ReactNode

showReasoning

boolean

renderInput

(props: { onSubmit: (content: string) => void; disabled: boolean; }) => React.ReactNode

showAgentBadges

boolean

enableMessageActions

boolean

variant

'default' | 'floating' | 'fullscreen' | 'sidebar'

placeholder

string

showHandoffs

boolean

handoffVariant

'inline' | 'card'

showAgentStatus

boolean

agents

suggestions

string[]

suggestionsTitle

string