Skip to main content
This component lists all the groups created on CometChat and also allows users to search for groups. It enables users to find and locate specific groups based on various search criteria or parameters.

Properties

Title

Heading text for the component This involves keywords, phrases, or criteria into the search bar and retrieving relevant results based on the search query.

Loading state

This refers to the state of the groups component when it is actively retrieving or fetching data.

Empty state

This refers to the state of the groups component when it has no content or data to display

Error state

This refers to the state of the groups component when an error occurs during the retrieval of the data.

RequestBuilder

This provides set of methods that allow developers to easily create and configure groups before fetching them for the intended recipients.

Toggle

Switch to hide or show the separators, and error message.

activeGroup

This refers to a group which has an ongoing interactions and participation from its members.

selectionMode

Allows user to choose individual or multiple items.

Custom view

UI component created and customised by the developer to meet your design or functional requirements. UI component created and customised by the developer to meet your design or functional requirements representing the button actions in the header section.

Actions

This includes action buttons or icons that allow users to perform common actions or tasks, such as muting the notification etc.

Function Callback

Functions that can be invoked by the user in response to a specific event or condition.

Style

Styling properties and values of all the involved components

Usage

CometChatGroups can be launched by adding the following code snippet.