Skip to main content

MessageComposerAction

CometChatMessageComposerAction is a pre-defined structure for creating an attachment option in the CometChatMessageComposer component that the user can perform in addition to composing a message.

Structure of CometChatMessageComposerAction

NameTypeDescription
idstringUnique identifier for the attachment option
titlestringHeading text for the attachment option
titleFontstringSets all the different properties of font for the attachment option text
titleColorstringSets the foreground color of attachment option text
iconUrlstringAsset URL for the icon to symbolize a attachment option
iconTintstringColor applied to the icon of a attachment option
backgroundstringColor applied to the background of the attachment option
borderRadiusstringBorder radius applied to the layout of the attachment option
onClick(id:number)=> voidFunction invoked when user clicks on the attachment option.