Ga naar hoofdinhoud

CnAiChatPanel

Slide-out conversation panel for the AI Chat Companion — embeds an NcAppSidebar with the message list (CnAiMessageList) and the composer (CnAiInput). Rendered by CnAiCompanion, which owns the stream state.

Props​

PropTypeRequiredDefaultNotes
visibleBooleanNofalseControls panel visibility.
streamState (stream-state)ObjectYes—The reactive state object from useAiChatStream(): { isStreaming, currentText, toolCalls, error, messages }.
fabRef (fab-ref)ObjectNonullRef to the FAB element — kept for API back-compat; focus return is handled by NcAppSidebar.

Events​

EventPayloadDescription
close—User dismissed the panel.
sendmessage textUser submitted a message via CnAiInput.
new-thread—User asked to start a fresh conversation.
load-conversationconversation uuidUser picked a past conversation from CnAiHistoryDialog.

Reference​