Skip to main content

Overview

CometChat UI Kit provides pre-built components that you can use to quickly build a chat experience. Components are organized into three types based on complexity.

Component Types

Base Components

Simple UI elements with no business logic. They display data you pass to them.

Components

UI elements with built-in business logic. They fetch data, handle actions, and emit events.

Composite Components

Combine multiple components into complete features.

Actions

Actions define how components respond to user interactions.

Predefined Actions

Built-in behaviors that work automatically:

Custom Actions

Override default behavior with your own logic:

Events

Events allow components to communicate without direct references. Subscribe to events from anywhere in your app.

Available Events

Subscribe to Events


Configurations

Customize nested components within composite components:

Component Hierarchy


Quick Reference

When to Use Each Type

Common Patterns