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
Name | Type | Description |
---|---|---|
id | string | Unique identifier for the attachment option |
title | string | Heading text for the attachment option |
titleFont | string | Sets all the different properties of font for the attachment option text |
titleColor | string | Sets the foreground color of attachment option text |
iconUrl | string | Asset URL for the icon to symbolize a attachment option |
iconTint | string | Color applied to the icon of a attachment option |
background | string | Color applied to the background of the attachment option |
borderRadius | string | Border radius applied to the layout of the attachment option |
onClick | (id:number)=> void | Function invoked when user clicks on the attachment option. |