Skip to main content

Architecture

The UI Kit is a set of independent components that compose into chat layouts. A typical chat layout uses four core components:
  • CometChatConversations — list of recent conversations
  • CometChatMessageHeader — toolbar with avatar, name, status, typing indicator
  • CometChatMessageList — scrollable message feed with reactions, receipts, threads
  • CometChatMessageComposer — rich input with attachments, mentions, voice notes
Selecting a conversation yields a User or Group object. Pass it to the message components to load the chat. Components communicate via CometChatEvents — a SharedFlow-based event bus. See Events.

Component Catalog

Conversations and Lists

Messages

Calling


Component API Pattern

All components share a consistent API surface across both modules.

Setting User or Group

Callbacks

Data Filtering

View Slots

Replace specific regions of a component’s UI. See View Slots.

Styles

See Component Styling.
XML theme attributes in themes.xml:

Events

Global inter-component communication via CometChatEvents:
See Events for the full reference.

Next Steps

Core Features

Chat features included out of the box

Theming

Customize colors, fonts, and styles

Customization

Deep customization via ViewModels, styles, and view slots

Guides

Task-oriented tutorials for common patterns