Skip to main content

MessageComposerConfiguration

This refers to the properties of the CometChatMessageComposer component that are available for customisation via the parent component when the component exists in a deep nested hierarchy.

Configurable Properties

NameDescription
auxiliaryButtonsAlignmentThis refers to the visual arrangement or positioning of the auxiliary buttons within the composer list. Defaults to right alignment.
attachmentOptionsThis refer to the functionalities that allow users to attach various types of files, media, or content to their messages such as polls, collaborative document etc
attachmentIconURLAsset URL for the attach icon.
emojiIconURLAsset URL for the emoji icon
LiveReactionIconURLAsset URL for the live reaction.
voiceRecordingCloseIconURLAsset URL for the close icon in video recording pane
sendButtonIconURLAsset URL for the send button
sendButtonViewUser-defined component to customise the send button.
hideLayoutModeWhen set to true, hides the button which toggles the action sheet layout mode between "grid" & "list"
secondaryButtonViewUser-defined component to customise the secondary button. By default, it shows the attach button.
auxiliaryButtonViewUser-defined component to customise the auxiliary button. By default, it shows the stickers button.
headerViewUser-defined component to customise the top of the message header component. You can customise it to display additional information or options related to the composition of messages such a giphy keyboard.
disableTypingWhen set to true, typing events are disabled and the typing indicators are not displayed.
hideLiveReactionWhen set to true, the button to send out the live reaction is not displayed.
hideVoiceRecordingWhen set to true, video recording button is not visible
disableSoundForMessagesWhen set to true, the component will not produce sound for all outgoing messages.
customSoundForMessagemp3 file asset of your choice.
onSendButtonClickOverride the method that is invoked when the user clicks on the send button
onErrorOverride the method that is invoked when an error is encountered within the details component
backdropStyleStyling properties and values of the Backdrop component
actionSheetStyleStyling properties and values of the Action Sheet composer
mediaRecorderStyleStyling properties of the Media Recorder component
messageComposerStyleStyling properties and values of the CometChatMessageHeader component
userMemberWrapperConfigurationProperties of the UserMemberWrapper component that are available for customisation via the messages component.
textFormattersListAccepts custom text formatters for message composer
disableMentionsDisables mentions in composer. Default value is set to false
mentionsWarningTextText to be displayed when max limit reaches for valid mentions
mentionsWarningStyleStyling properties and values for mentionsWarningStyle