> ## Documentation Index
> Fetch the complete documentation index at: https://cometchat-22654f5b-docs-llms-scoped-indexes.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# MessageComposerAction

> MessageComposerAction — CometChat documentation.

`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. |


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.