Skip to main content
A card is made up of elements arranged on the canvas. Interactive elements can trigger actions, and components give you ready-made groups of elements to start from. This page lists what’s available.

Elements

Content

Layout

Rows, columns, and grids can also have their own background color, corner radius, and border.

Interactive

Data

Actions

Add an action to a button, icon button, link, or chip to make it interactive. When a user taps the element, the action runs.

Variables

Variables are placeholders you insert into text and URL fields, written as {{name}} (for example {{user.name}}). They’re replaced with real values when the card is sent, letting one card adapt to each recipient. Insert them from the variable picker wherever you enter text.

Components

Components are pre-built groups of elements you can add to a card and then edit. They’re a fast way to start a common card:

Fallback Text

Every card includes fallback text — what a CometChat UI Kit renders if it can’t display the card itself (for example, if the card JSON is malformed or the client doesn’t support cards). Always set it so the message still conveys its meaning.