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

# Message Composer

> Message Composer — CometChat documentation.

## Overview

`CometChatMessageComposer` is a [Widget](/ui-kit/flutter/v4/components-overview#components) that enables users to write and send a variety of messages, including text, image, video, and custom messages.

Features such as **Live Reaction**, **Attachments**, and **Message Editing** are also supported by it.

<Frame>
  <img src="https://mintcdn.com/cometchat-22654f5b-docs-rn-guide-message-privately/mkn0UqPQ5BXljCV1/images/94689d89-message_composer_overview-1b756215eda5976da0551ef849b860fd.png?fit=max&auto=format&n=mkn0UqPQ5BXljCV1&q=85&s=df330d967ac4b29abe9f1346dc60d25b" width="1249" height="1147" data-path="images/94689d89-message_composer_overview-1b756215eda5976da0551ef849b860fd.png" />
</Frame>

`CometChatMessageComposer` is comprised of the following [Base Widgets](/ui-kit/flutter/v4/components-overview#base-components):

| Base Widgets                                     | Description                                                                                                         |
| ------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------- |
| [MessageInput](/ui-kit/flutter/v4/message-input) | This provides a basic layout for the contents of this component, such as the TextField and buttons                  |
| [ActionSheet](/ui-kit/flutter/v4/action-sheet)   | The ActionSheet widget presents a list of options in either a list or grid mode, depending on the user's preference |

## Usage

### Integration

You can launch `CometChatMessageComposer` directly using `Navigator.push`, or you can define it as a widget within the `build` method of your `State` class.

##### 1. Using Navigator to Launch `CometChatMessageComposer`

<Tabs>
  <Tab title="Dart">
    ```dart theme={null}
    Navigator.push(context, MaterialPageRoute(builder: (context) => CometChatMessageComposer())); // A user or group object is required to launch this widget.
    ```
  </Tab>
</Tabs>

##### 2. Embedding `CometChatMessageComposer` as a Widget in the build Method

<Tabs>
  <Tab title="Dart">
    ```dart theme={null}
    import 'package:cometchat_chat_uikit/cometchat_chat_uikit.dart';
    import 'package:flutter/material.dart';

    class MessageComposer extends StatefulWidget {
      const MessageComposer({super.key});

      @override
      State<MessageComposer> createState() => _MessageComposerState();
    }

    class _MessageComposerState extends State<MessageComposer> {

      @override
      Widget build(BuildContext context) {
        return Scaffold(
            body: SafeArea(
                child: Column(
                  children: [
                    const Spacer(),
                    CometChatMessageComposer()
                  ],
                ) // A user or group object is required to launch this widget.
            )
        );
      }
    }
    ```
  </Tab>
</Tabs>

***

### Actions

[Actions](/ui-kit/flutter/v4/components-overview#actions) dictate how a widget functions. They are divided into two types: Predefined and User-defined. You can override either type, allowing you to tailor the behavior of the widget to fit your specific needs.

##### 1. OnSendButtonClick

The `OnSendButtonClick` event gets activated when the send message button is clicked. It has a predefined function of sending messages entered in the composer `EditText`. However, you can overide this action with the following code snippet.

<Tabs>
  <Tab title="Dart">
    ```dart theme={null}
    CometChatMessageComposer(
      user: user,
      onSendButtonTap: (BuildContext context, BaseMessage baseMessage, PreviewMessageMode? previewMessageMode) {
        // TODO("Not yet implemented")
      },
    )
    ```
  </Tab>
</Tabs>

***

##### 2. onChange

This action handles changes in the value of text in the input field of the CometChatMessageComposer widget.

<Tabs>
  <Tab title="Dart">
    ```dart theme={null}
    CometChatMessageComposer(
      user: user,
      onChange: (String? text) {
        // TODO("Not yet implemented")
      },
    )
    ```
  </Tab>
</Tabs>

***

##### 3. onError

This action doesn't change the behavior of the widget but rather listens for any errors that occur in the MessageList widget.

<Tabs>
  <Tab title="Dart">
    ```dart theme={null}
    CometChatMessageComposer(
      user: user,
      onError: (e) {
        // TODO("Not yet implemented")
      },
    )
    ```
  </Tab>
</Tabs>

***

### Filters

`CometChatMessageComposer` widget does not have any available filters.

***

### Events

[Events](/ui-kit/flutter/v4/components-overview#events) are emitted by a `Widget`. By using event you can extend existing functionality. Being global events, they can be applied in Multiple Locations and are capable of being Added or Removed.

The `CometChatMessageComposer` Widget does not emit any events of its own.

***

## Customization

To fit your app's design requirements, you can customize the appearance of the `CometChatMessageComposer` widget. We provide exposed methods that allow you to modify the experience and behavior according to your specific needs.

### Style

Using Style you can customize the look and feel of the widget in your app, These parameters typically control elements such as the color, size, shape, and fonts used within the widget.

##### 1. `CometChatMessageComposer` Style

To modify the styling, you can apply the MessageComposerStyle to the `CometChatMessageComposer` Widget using the `messageComposerStyle` method.

<Tabs>
  <Tab title="Dart">
    ```dart theme={null}
    CometChatMessageComposer(
      user: user,
      messageComposerStyle: MessageComposerStyle(
          background: Color(0xFFE4EBF5),
          inputBackground: Color(0xFFE4EBF5),
          border: Border.all(width: 3, color: Color(0xFF6851D6))
      ),
    )
    ```
  </Tab>
</Tabs>

<Tabs>
  <Tab title="Android">
    <img src="https://mintcdn.com/cometchat-22654f5b-docs-rn-guide-message-privately/_MYSdWhXnUkTkjEH/images/46ea7d10-message_composer_style_cometchat_screens-c5a8c4f2fb8022d22c76a5d73be10e21.png?fit=max&auto=format&n=_MYSdWhXnUkTkjEH&q=85&s=0ab1b0e5d046f070975e70e4767b51c4" alt="Image" width="4498" height="3121" data-path="images/46ea7d10-message_composer_style_cometchat_screens-c5a8c4f2fb8022d22c76a5d73be10e21.png" />
  </Tab>

  <Tab title="iOS">
    <img src="https://mintcdn.com/cometchat-22654f5b-docs-rn-guide-message-privately/_MYSdWhXnUkTkjEH/images/4b301273-message_composer_style_cometchat_screens-24e3e7420f3997f8f10f837018686237.png?fit=max&auto=format&n=_MYSdWhXnUkTkjEH&q=85&s=5bdc653a35695d064ff8ab210fe3545b" alt="Image" width="4498" height="3121" data-path="images/4b301273-message_composer_style_cometchat_screens-24e3e7420f3997f8f10f837018686237.png" />
  </Tab>
</Tabs>

***

The following properties are exposed by MessageComposerStyle:

| **Property**                  | Description                                         | Code                               |
| ----------------------------- | --------------------------------------------------- | ---------------------------------- |
| **Ai Icon Tint**              | Sets the tint color for the AI icon.                | `aiIconTint: Color?`               |
| **Attachment Icon Tint**      | Sets the tint color for the attachment icon.        | `attachmentIconTint: Color?`       |
| **Background**                | Sets the background color of the message composer.  | `background: Color?`               |
| **Border**                    | Sets the border properties of the message composer. | `border: Border?`                  |
| **Border Radius**             | Sets the border radius of the message composer.     | `borderRadius: BorderRadius?`      |
| **Close Icon Tint**           | Sets the tint color for the close icon.             | `closeIconTint: Color?`            |
| **Content Padding**           | Sets the padding around the content.                | `contentPadding: EdgeInsets?`      |
| **Divider Tint**              | Sets the tint color for the divider.                | `dividerTint: Color?`              |
| **Gradient**                  | Sets the gradient applied to the message composer.  | `gradient: Gradient?`              |
| **Height**                    | Sets the height of the message composer.            | `height: double?`                  |
| **Input Background**          | Sets the background color of the input field.       | `inputBackground: Color?`          |
| **Input Gradient**            | Sets the gradient applied to the input field.       | `inputGradient: Gradient?`         |
| **Input Text Style**          | Sets the text style for the input field.            | `inputTextStyle: TextStyle?`       |
| **Message Input Padding**     | Sets the padding around the message input field.    | `messageInputPadding: EdgeInsets?` |
| **Placeholder Text Style**    | Sets the text style for the placeholder text.       | `placeholderTextStyle: TextStyle?` |
| **Send Button Icon**          | Sets the icon for the send button.                  | `sendButtonIcon: Icon?`            |
| **Send Button Icon Tint**     | Sets the tint color for the send button icon.       | `sendButtonIconTint: Color?`       |
| **Voice Recording Icon Tint** | Sets the tint color for the voice recording icon.   | `voiceRecordingIconTint: Color?`   |
| **Width**                     | Sets the width of the message composer.             | `width: double?`                   |

***

##### 2. MediaRecorder Style

To customize the styles of the MediaRecorder widget within the `CometChatMessageComposer` Widget, use the `mediaRecorderStyle`. For more details, please refer to [MediaRecorder](/ui-kit/flutter/v4/media-recorder) styles.

<Tabs>
  <Tab title="Dart">
    ```dart theme={null}
    CometChatMessageComposer(
      user: user,
      mediaRecorderStyle: MediaRecorderStyle(
        background: Color(0xFFE4EBF5),
        border: Border.all(width: 3, color: Colors.red),
        pauseIconTint: Colors.red,
        playIconTint: Colors.red,
        closeIconTint: Colors.red,
        timerTextStyle: const TextStyle(color: Colors.black, fontFamily: "PlaywritePL"),
        submitIconTint: Colors.red,
        startIconTint: Colors.red,
        stopIconTint: Colors.red,
      ),
    )
    ```
  </Tab>
</Tabs>

***

##### 3. AI Options Style

To customize the styles of the AI Options widget within the `CometChatMessageComposer` Widget, use the `aiOptionStyle`.

<Tabs>
  <Tab title="Dart">
    ```dart theme={null}
    CometChatMessageComposer(
      user: user,
      aiOptionStyle: AIOptionsStyle(
        background: Color(0xFFE4EBF5),
        border: Border.all(width: 3, color: Colors.red),
      )
    )
    ```
  </Tab>
</Tabs>

***

### Functionality

These are a set of small functional customizations that allow you to fine-tune the overall experience of the widget. With these, you can change text, set custom icons, and toggle the visibility of UI elements.

<Tabs>
  <Tab title="Android">
    <img src="https://mintcdn.com/cometchat-22654f5b-docs-rn-guide-message-privately/PrOf0fpV33FkfOMB/images/1377df54-message_composer_functionality_cometchat_screens-e7ba604b091545ff2de54fc2e84faf64.png?fit=max&auto=format&n=PrOf0fpV33FkfOMB&q=85&s=4d6ec364b27592c46f201435d2baf667" alt="Image" width="4498" height="3121" data-path="images/1377df54-message_composer_functionality_cometchat_screens-e7ba604b091545ff2de54fc2e84faf64.png" />
  </Tab>

  <Tab title="iOS">
    <img src="https://mintcdn.com/cometchat-22654f5b-docs-rn-guide-message-privately/OOBJyP9hM0C-rAe_/images/de5f5c93-message_composer_functionality_cometchat_screens-8e132a0a2b1851f1d00a8781346e4c09.png?fit=max&auto=format&n=OOBJyP9hM0C-rAe_&q=85&s=917646dbfdaa6365007954c76ad1d1fd" alt="Image" width="4498" height="3121" data-path="images/de5f5c93-message_composer_functionality_cometchat_screens-8e132a0a2b1851f1d00a8781346e4c09.png" />
  </Tab>
</Tabs>

<Tabs>
  <Tab title="Dart">
    ```dart theme={null}
    CometChatMessageComposer(
      user: user,
      placeholderText: "Type a message...",
      liveReactionIcon: const Icon(Icons.live_tv, color: Colors.green,),
      hideVoiceRecording: true,
      disableMentions: true,
    )
    ```
  </Tab>
</Tabs>

<Tabs>
  <Tab title="Android">
    <img src="https://mintcdn.com/cometchat-22654f5b-docs-rn-guide-message-privately/PaxBG9I1yMoeQmt2/images/37510802-message_composer_functionality_after_cometchat_screens-c9d66a142afdcec816aa3196e08b932a.png?fit=max&auto=format&n=PaxBG9I1yMoeQmt2&q=85&s=76be4a416b55b57eb76e0d1b1c848052" alt="Image" width="4498" height="3121" data-path="images/37510802-message_composer_functionality_after_cometchat_screens-c9d66a142afdcec816aa3196e08b932a.png" />
  </Tab>

  <Tab title="iOS">
    <img src="https://mintcdn.com/cometchat-22654f5b-docs-rn-guide-message-privately/mkn0UqPQ5BXljCV1/images/937c8e79-message_composer_functionality_after_cometchat_screens-84059fd597b39fd7f1bb0f195c6fa819.png?fit=max&auto=format&n=mkn0UqPQ5BXljCV1&q=85&s=5b9eacc4a8c843165ddf3fc6328cc913" alt="Image" width="4498" height="3121" data-path="images/937c8e79-message_composer_functionality_after_cometchat_screens-84059fd597b39fd7f1bb0f195c6fa819.png" />
  </Tab>
</Tabs>

Below is a list of customizations along with corresponding code snippets

| **Property**                    | Description                                           | Code                                         |
| ------------------------------- | ----------------------------------------------------- | -------------------------------------------- |
| **Ai Icon**                     | Sets the AI icon.                                     | `aiIcon: Icon?`                              |
| **Ai Icon Url**                 | Sets the URL for the AI icon.                         | `aiIconURL: String?`                         |
| **Attachment Icon**             | Sets the icon for attachments.                        | `attachmentIcon: Icon?`                      |
| **Attachment Icon Url**         | Sets the URL for the attachment icon.                 | `attachmentIconURL: String?`                 |
| **Attachment Options**          | Sets the options for attachment actions.              | `attachmentOptions: ComposerActionsBuilder?` |
| **Auxiliary Buttons Alignment** | Sets the alignment for auxiliary buttons.             | `auxiliaryButtonsAlignment: Alignment?`      |
| **Custom Sound For Message**    | Sets the custom sound for messages.                   | `customSoundForMessage: String?`             |
| **Delete Icon**                 | Sets the icon for the delete action.                  | `deleteIcon: Icon?`                          |
| **Disable Mentions**            | Disables mentions in the message composer.            | `disableMentions: bool?`                     |
| **Disable Sound For Messages**  | Disables sound notifications for messages.            | `disableSoundForMessages: bool`              |
| **Disable Typing Events**       | Disables typing events.                               | `disableTypingEvents: bool`                  |
| **Live Reaction Icon**          | Sets the icon for live reactions.                     | `liveReactionIcon: Icon?`                    |
| **Live Reaction Icon Url**      | Sets the URL for the live reaction icon.              | `liveReactionIconURL: String?`               |
| **Max Line**                    | Sets the maximum number of lines for the input field. | `maxLine: int?`                              |
| **Pause Icon**                  | Sets the icon for the pause action.                   | `pauseIcon: Icon?`                           |
| **Placeholder Text**            | Sets the placeholder text for the input field.        | `placeholderText: String?`                   |
| **Play Icon**                   | Sets the icon for the play action.                    | `playIcon: Icon?`                            |
| **Record Icon**                 | Sets the icon for the record action.                  | `recordIcon: Icon?`                          |
| **Stop Icon**                   | Sets the icon for the stop action.                    | `stopIcon: Icon?`                            |
| **Submit Icon**                 | Sets the icon for the submit action.                  | `submitIcon: Icon?`                          |
| **Text**                        | Sets the initial text for the input field.            | `text: String?`                              |

***

### Advanced

For advanced-level customization, you can set custom widgets to the widget. This lets you tailor each aspect of the widget to fit your exact needs and application aesthetics. You can create and define your widgets and then incorporate those into the widget.

***

#### TextFormatters

Assigns the list of text formatters. If the provided list is not null, it sets the list. Otherwise, it assigns the default text formatters retrieved from the data source. To configure the existing Mentions look and feel check out [CometChatMentionsFormatter](/ui-kit/flutter/v4/mentions-formatter-guide)

**Example**

Here is the complete example for reference:

<Tabs>
  <Tab title="Dart">
    ```dart theme={null}
    CometChatMessageComposer(
      user: user,
      textFormatters: [
        CometChatMentionsFormatter(
          messageBubbleTextStyle: (theme, alignment,{forConversation = false}) =>
              TextStyle(
                  color: alignment==BubbleAlignment.left? Colors.orange : Colors.pink,
                  fontSize: 14,
                  fontWeight: FontWeight.bold
              ),
        )
      ],
    )
    ```
  </Tab>
</Tabs>

<Tabs>
  <Tab title="Android">
    <img src="https://mintcdn.com/cometchat-22654f5b-docs-rn-guide-message-privately/2SVOPiSpm0QEqRoz/images/f0d5bc7b-conversation_text_formatters_cometchat_screens-1c357a76fec0d31fecb2b687d51523d7.png?fit=max&auto=format&n=2SVOPiSpm0QEqRoz&q=85&s=cc48003b010f313721b784944a6695a9" alt="Image" width="4498" height="3120" data-path="images/f0d5bc7b-conversation_text_formatters_cometchat_screens-1c357a76fec0d31fecb2b687d51523d7.png" />
  </Tab>

  <Tab title="iOS">
    <img src="https://mintcdn.com/cometchat-22654f5b-docs-rn-guide-message-privately/7a4hqm7gLVRmX34O/images/04783604-conversation_text_formatters_cometchat_screens-48ad9b33d9f80f9b263cd8916251fd9b.png?fit=max&auto=format&n=7a4hqm7gLVRmX34O&q=85&s=d91ba65a449e50e4452b21ef4441d88d" alt="Image" width="4498" height="3120" data-path="images/04783604-conversation_text_formatters_cometchat_screens-48ad9b33d9f80f9b263cd8916251fd9b.png" />
  </Tab>
</Tabs>

***

#### AttachmentOptions

By using `attachmentOptions`, you can set a list of custom `MessageComposerActions` for the `CometChatMessageComposer` Widget. This will override the existing list of `MessageComposerActions`.

**Example**

Here is the complete example for reference:

<Tabs>
  <Tab title="Dart">
    ```dart theme={null}
    CometChatMessageComposer(
      user: user,
      attachmentOptions: (context, user, group, id) {
        return [
          CometChatMessageComposerAction(
            id: 'opt1',
            title: "Send Image",
            iconUrl: "assets/img/envelope.png",
            onItemClick: (BuildContext context, User? user, Group? group) {
              // TODO("Not yet implemented")
            }
          ),
          CometChatMessageComposerAction(
              id: 'opt1',
              title: "Send Image",
              iconUrl: "assets/img/envelope.png",
              onItemClick: (BuildContext context, User? user, Group? group) {
                // TODO("Not yet implemented")
              }
          ),
          CometChatMessageComposerAction(
              id: 'opt1',
              title: "Send Image",
              iconUrl: "assets/img/envelope.png",
              onItemClick: (BuildContext context, User? user, Group? group) {
                // TODO("Not yet implemented")
              }
          ),
        ];
      },
    )
    ```
  </Tab>
</Tabs>

<Tabs>
  <Tab title="Android">
    <img src="https://mintcdn.com/cometchat-22654f5b-docs-rn-guide-message-privately/21UBnagXOw-XG0Sv/images/b15b1584-message_composer_attachment_options_cometchat_screens-2af7fc23a4e200988b036b83640602ec.png?fit=max&auto=format&n=21UBnagXOw-XG0Sv&q=85&s=a27bdcd72e78d3d31fefe3aa08a3e20e" alt="Image" width="4498" height="3121" data-path="images/b15b1584-message_composer_attachment_options_cometchat_screens-2af7fc23a4e200988b036b83640602ec.png" />
  </Tab>

  <Tab title="iOS">
    <img src="https://mintcdn.com/cometchat-22654f5b-docs-rn-guide-message-privately/2SVOPiSpm0QEqRoz/images/eac99319-message_composer_attachment_options_cometchat_screens-ca1bdda628ac5a5f9a431b028209d406.png?fit=max&auto=format&n=2SVOPiSpm0QEqRoz&q=85&s=3f1323289471a2ea21301ab1c3f35c30" alt="Image" width="4498" height="3121" data-path="images/eac99319-message_composer_attachment_options_cometchat_screens-ca1bdda628ac5a5f9a431b028209d406.png" />
  </Tab>
</Tabs>

***

#### AuxiliaryButton Widget

You can insert a custom widget into the `CometChatMessageComposer` widget to add additional functionality using the following method.

**Example**

Here is the complete example for reference:

<Tabs>
  <Tab title="Dart">
    ```dart theme={null}
    CometChatMessageComposer(
        user: user,
        auxiliaryButtonView: (context, user, group, id) {
          return Container(
            color: Colors.yellow,
            padding: const EdgeInsets.all(8),
            child: const Row(
              children: [
                Icon(Icons.account_balance_wallet_outlined, color: Color(0xFF6851D6)),
                SizedBox(width: 10,),
                Icon(Icons.add_alert_outlined, color: Color(0xFF6851D6)),
              ],
            ),
          );
        }
    )
    ```
  </Tab>
</Tabs>

<Tabs>
  <Tab title="Android">
    <img src="https://mintcdn.com/cometchat-22654f5b-docs-rn-guide-message-privately/ugckbRl5Q-H7t8X2/images/e5e58c36-message_composer_auxiliary_button_cometchat_screens-ab9ab2bc470a6d33dc9c95a854cce873.png?fit=max&auto=format&n=ugckbRl5Q-H7t8X2&q=85&s=820d93750ca4f4d6b8a223c3f184a948" alt="Image" width="4498" height="3121" data-path="images/e5e58c36-message_composer_auxiliary_button_cometchat_screens-ab9ab2bc470a6d33dc9c95a854cce873.png" />
  </Tab>

  <Tab title="iOS">
    <img src="https://mintcdn.com/cometchat-22654f5b-docs-rn-guide-message-privately/ugckbRl5Q-H7t8X2/images/e2570271-message_composer_auxiliary_button_cometchat_screens-7602d5b665e4c98d07dd8df12e9d11e2.png?fit=max&auto=format&n=ugckbRl5Q-H7t8X2&q=85&s=3ecd20b8a231ca11159f95f072f8c7df" alt="Image" width="4498" height="3121" data-path="images/e2570271-message_composer_auxiliary_button_cometchat_screens-7602d5b665e4c98d07dd8df12e9d11e2.png" />
  </Tab>
</Tabs>

***

#### SecondaryButton Widget

You can add a custom widget into the SecondaryButton widget for additional functionality using the below method.

**Example**

Here is the complete example for reference:

<Tabs>
  <Tab title="Dart">
    ```dart theme={null}
    CometChatMessageComposer(
        user: user,
        secondaryButtonView: (context, user, group, id) {
          return Container(
            color: Colors.yellow,
            padding: const EdgeInsets.all(8),
            child: const Icon(Icons.menu, color: Color(0xFF6851D6)),
          );
        },
    )
    ```
  </Tab>
</Tabs>

<Tabs>
  <Tab title="Android">
    <img src="https://mintcdn.com/cometchat-22654f5b-docs-rn-guide-message-privately/21UBnagXOw-XG0Sv/images/b10305ca-message_composer_secondary_button_cometchat_screens-d9794d4731695b2c868e70ec0de51b86.png?fit=max&auto=format&n=21UBnagXOw-XG0Sv&q=85&s=a45dbd42a98bf8b560e44114b3d9c754" alt="Image" width="4498" height="3121" data-path="images/b10305ca-message_composer_secondary_button_cometchat_screens-d9794d4731695b2c868e70ec0de51b86.png" />
  </Tab>

  <Tab title="iOS">
    <img src="https://mintcdn.com/cometchat-22654f5b-docs-rn-guide-message-privately/mq8rEbFfi0JjKmkM/images/6b4d16f3-message_composer_secondary_button_cometchat_screens-06da29babc6ec1e98765dd8d2f21a8bc.png?fit=max&auto=format&n=mq8rEbFfi0JjKmkM&q=85&s=5c6adc374c75a5e1972a12b3d5251a1d" alt="Image" width="4498" height="3121" data-path="images/6b4d16f3-message_composer_secondary_button_cometchat_screens-06da29babc6ec1e98765dd8d2f21a8bc.png" />
  </Tab>
</Tabs>

***

#### SendButton Widget

You can set a custom widget in place of the already existing send button widget. Using the following method.

**Example**

Here is the complete example for reference:

<Tabs>
  <Tab title="Dart">
    ```dart theme={null}
    CometChatMessageComposer(
      user: user,
      sendButtonView: Container(
        color: Colors.yellow,
        padding: const EdgeInsets.all(8),
        child: const Icon(Icons.send_time_extension_outlined, color: Color(0xFF6851D6)),
      ),
    )
    ```
  </Tab>
</Tabs>

<Tabs>
  <Tab title="Android">
    <img src="https://mintcdn.com/cometchat-22654f5b-docs-rn-guide-message-privately/PrOf0fpV33FkfOMB/images/15214ddd-message_composer_send_button_cometchat_screens-82141422307ec6bc2f479f41264dc99d.png?fit=max&auto=format&n=PrOf0fpV33FkfOMB&q=85&s=42e9225c22be6ed713f15c0a9b4630dd" alt="Image" width="4498" height="3121" data-path="images/15214ddd-message_composer_send_button_cometchat_screens-82141422307ec6bc2f479f41264dc99d.png" />
  </Tab>

  <Tab title="iOS">
    <img src="https://mintcdn.com/cometchat-22654f5b-docs-rn-guide-message-privately/G6Puyz_3Zlaowa9R/images/cdbeb8e7-message_composer_send_button_cometchat_screens-d2651dc053b82d6ad16cb7a39e450a22.png?fit=max&auto=format&n=G6Puyz_3Zlaowa9R&q=85&s=be6e2b1233f9bc7c1686e811cfad566b" alt="Image" width="4498" height="3121" data-path="images/cdbeb8e7-message_composer_send_button_cometchat_screens-d2651dc053b82d6ad16cb7a39e450a22.png" />
  </Tab>
</Tabs>

***

#### Header Widget

You can set custom headerView to the `CometChatMessageComposer` widget using the following method

**Example**

Here is the complete example for reference:

<Tabs>
  <Tab title="Dart">
    ```dart theme={null}
    CometChatMessageComposer(
      user: user,
      headerView: (context, user, group, id) {
        return Container(
          width: MediaQuery.of(context).size.width/1.08,
          color: Colors.yellow,
          padding: const EdgeInsets.all(8),
          child: const Center(child: Text("Your Header Widget")),
        );
      },
    )
    ```
  </Tab>
</Tabs>

<Tabs>
  <Tab title="Android">
    <img src="https://mintcdn.com/cometchat-22654f5b-docs-rn-guide-message-privately/NN4EdpOU3viwWMb_/images/0acb1e46-message_composer_header_view_cometchat_screens-f09039caa68e752dd896c935f2920532.png?fit=max&auto=format&n=NN4EdpOU3viwWMb_&q=85&s=42ced855aa3f6260fdcc869f56846f64" alt="Image" width="4498" height="3121" data-path="images/0acb1e46-message_composer_header_view_cometchat_screens-f09039caa68e752dd896c935f2920532.png" />
  </Tab>

  <Tab title="iOS">
    <img src="https://mintcdn.com/cometchat-22654f5b-docs-rn-guide-message-privately/mq8rEbFfi0JjKmkM/images/6451e6c1-message_composer_header_view_cometchat_screens-a192055aa7c13ed1bf00c1b10f657122.png?fit=max&auto=format&n=mq8rEbFfi0JjKmkM&q=85&s=16d46dc2ae1e08493a032970542a4978" alt="Image" width="4498" height="3121" data-path="images/6451e6c1-message_composer_header_view_cometchat_screens-a192055aa7c13ed1bf00c1b10f657122.png" />
  </Tab>
</Tabs>

***

#### Footer Widget

You can set a custom footer widget to the `CometChatMessageComposer` widget using the following method:

**Example**

Here is the complete example for reference:

<Tabs>
  <Tab title="Dart">
    ```dart theme={null}
    CometChatMessageComposer(
      user: user,
      footerView: (context, user, group, id) {
        return Container(
          width: MediaQuery.of(context).size.width/1.08,
          color: Colors.yellow,
          padding: const EdgeInsets.all(8),
          child: const Center(child: Text("Your Footer Widget")),
        );
      },
    )
    ```
  </Tab>
</Tabs>

<Tabs>
  <Tab title="Android">
    <img src="https://mintcdn.com/cometchat-22654f5b-docs-rn-guide-message-privately/7a4hqm7gLVRmX34O/images/046c76af-message_composer_footer_view_cometchat_screens-5812a879cc6949aa04be485821255e0a.png?fit=max&auto=format&n=7a4hqm7gLVRmX34O&q=85&s=f9eac380af4f310b02909f98a30b7aa2" alt="Image" width="4498" height="3121" data-path="images/046c76af-message_composer_footer_view_cometchat_screens-5812a879cc6949aa04be485821255e0a.png" />
  </Tab>

  <Tab title="iOS">
    <img src="https://mintcdn.com/cometchat-22654f5b-docs-rn-guide-message-privately/ugckbRl5Q-H7t8X2/images/e57c8a15-message_composer_footer_view_cometchat_screens-49ac543fd44c8879b857da46340db0fe.png?fit=max&auto=format&n=ugckbRl5Q-H7t8X2&q=85&s=13c6453b14a0e84bd252e8e0dc11b0cd" alt="Image" width="4498" height="3121" data-path="images/e57c8a15-message_composer_footer_view_cometchat_screens-49ac543fd44c8879b857da46340db0fe.png" />
  </Tab>
</Tabs>

***
