Docs

Message Input

Message Input allows users to author and send messages.

Message Input allows users to author and send messages.

Source code
MessageInputComponent.java
message-input-component.tsx
message-input-component.ts

The user can send the message with one of the following actions:

  • by pressing Enter (use Shift+Enter to add a new line)

  • by clicking the “send” button.

Use the Message List component to show messages that users have sent.

Source code
MessagesBasic.java
message-basic.tsx
message-basic.ts

File Attachments

Use the Modular Upload components to add file attachment support to Message Input. Place an UploadButton alongside the input and an UploadFileList above it to show pending attachments. When the user submits a message, clear the file list using clearFileList() on the UploadManager.

Source code
MessageInputUpload.java

The upload button opens a file picker. Selected files appear in the file list above the input. When the user sends the message, the submit listener processes the pending files and clears the attachment list.

For AI-powered chat applications, see File Attachments in AI Support, which automates this integration using the AIOrchestrator.

Component Usage recommendations

Message List

Show a list of messages.

Modular Upload

Add file attachment support to the input.

F69B472B-4E0A-4593-9A6C-5E57B417B1FE

Updated