Overview
CometChatThreadHeader
is a Component that displays the parent message & number of replies of thread.

Usage
Integration
The following code snippet illustrates how you can directly incorporate theCometChatMessageList
component into your app.
- App.tsx
Customization
To fit your app’s design requirements, you can customize the appearance of the conversation component. 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 component in your app, These parameters typically control elements such as the color, size, shape, and fonts used within the component.Thread Header
TheCometChatThreadHeader
is used in threaded message views, displaying information about the parent message. It provides a seamless way to navigate between the thread and the main conversation.

- App.tsx
Functionality
These are a set of small functional customizations that allow you to fine-tune the overall experience of the component. With these, you can change text, set custom icons, and toggle the visibility of UI elements. Below is a list of customizations along with corresponding code snippetsProperty | Description | Code |
---|---|---|
parentMessage | Used to to set the message for which the replies need to be fetched | parentMessage={messageObject} |
template | Used to to set custom template for the parent message | template={templateObject} |
replyCountVisibility | Used to toggle reply count visibility | replyCountVisibility={true} |
replyCountBarVisibility | Used to to toggle reply count bar visibility | template={templateObject} |
receiptsVisibility | Used to to toggle receipts Visibility | template={templateObject} |
avatarVisibility | Used to to toggle avatarVisibility | template={templateObject} |
Advanced
For advanced-level customization, you can set custom views to the component. This lets you tailor each aspect of the component to fit your exact needs and application aesthetics. You can create and define your views, layouts, and UI elements and then incorporate those into the component.Template
Thetemplate
property is used to configure and set a custom template for parent message bubble. It allows for dynamic customization of message appearance, content, or other predefined settings based on the template provided.
- App.tsx