Skip to main content

CnAiInput

Composer for the AI Chat Companion — the text area + send control at the bottom of CnAiChatPanel.

Props​

PropTypeRequiredDefaultNotes
disabledBooleanNofalseWhether the input controls are disabled (e.g. while a response is streaming).

Events​

EventPayloadDescription
sendmessage textEmitted when the user submits a message.

Reference​

Attaching files​

The paperclip opens a small menu. Upload from device uploads one file to the chat backend and adds a chip with { path, name }. Choose from Files opens the Nextcloud file picker for several files and adds a chip for each with { fileId, path, name }; those files are sent by id and never uploaded. send carries { text, attachments }, where each attachment is one of the two shapes. Backends that ignore fileId keep working with path.