<MessageField>

The <MessageField> component is displayed at the bottom of the chat panel. It includes the text area to write messages as well as additional buttons for sending an attachment or location.

interface MessageFieldProps

Properties

A collection of objects which are passed to all Chatbox theme components.

editMessageId
: string | undefined

When a message is being edited its ID will be stored here.

editor
: EditorController

An object holding the state of the message field.

permissions
: UserPermissions

The current user's permissions.

referencedMessage
: MessageSnapshot | undefined

The message that's currently being replied to, if any.

Example

In the default theme, the <MessageField> component is implemented as follows:

MessageField.js
1// loading...