CometChatGroupMembers component displays all members of a group with their roles (owner, admin, participant). It supports member management actions like kick, ban, and role changes.

Prerequisites
Before using this component:- Initialize CometChat UI Kit
- Log in a user
- Have a valid
Groupobject
Basic Usage
Production-Ready Implementation
Complete example with member actions and navigation:Filter Members
UseGroupMembersRequestBuilder to filter the member list:
Actions Reference
| Method | Description |
|---|---|
set(onItemClick:) | Member tapped |
set(onItemLongClick:) | Member long-pressed |
set(onBack:) | Back button pressed |
set(onSelection:) | Selection changed (multi-select mode) |
set(onError:) | Error occurred |
set(onEmpty:) | No members found |
set(onLoad:) | Members loaded |
Hide UI Elements
Styling
Quick Styling
Instance Styling

Custom Views
Custom List Item
Replace the entire member row with your own design:
Custom Subtitle View
Customize the subtitle area below the member name:
Custom Tail View
Add custom content on the right side of each row:
Custom Swipe Options
Add custom actions when swiping on a member:
Custom Menu Buttons
Add buttons to the navigation bar:
Listen for Events
React to member changes in your app:Style Properties
| Property | Description |
|---|---|
backgroundColor | Background color |
titleColor | Title text color |
titleFont | Title font |
listItemTitleTextColor | Member name color |
listItemTitleFont | Member name font |
listItemSubTitleTextColor | Subtitle color |
listItemBackground | Row background color |
separatorColor | Row separator color |
Troubleshooting
| Issue | Solution |
|---|---|
| Empty member list | Verify group GUID is correct |
| Actions not showing | Check user has admin/owner permissions |
| Custom views not appearing | Ensure views have proper constraints |
| Events not firing | Verify listener is added before actions |
Related Components
- Groups - List all groups
- Banned Members - View banned users