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

ElementDescription
TextA line or paragraph of text, with heading and body styles.
MarkdownRich text written in Markdown.
ImageAn image from a URL.
IconAn icon from the built-in library or a custom image.
AvatarA circular user or entity image.
BadgeA small label, often for status or counts.
ChipA compact, tappable tag.
Code blockPre-formatted, monospaced text.

Layout

ElementDescription
RowArranges elements side by side.
ColumnGroups elements vertically, usually inside a row.
GridArranges elements in a grid.
AccordionCollapsible sections that expand on tap.
TabsSwitch between sections of content.
DividerA horizontal line to separate content.
SpacerEmpty space to control vertical rhythm.
Rows, columns, and grids can also have their own background color, corner radius, and border.

Interactive

ElementDescription
ButtonA labeled button that triggers an action.
Icon buttonAn icon-only button that triggers an action.
LinkTappable text that triggers an action.

Data

ElementDescription
TableRows and columns of structured data.
Progress barA visual indicator of progress.

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.
ActionWhat it does
Open URLOpens a web address.
Chat with userStarts a one-to-one conversation with a user.
Chat with groupOpens a group conversation.
Send messageSends a message on the user’s behalf.
Copy to clipboardCopies text to the clipboard.
Download fileDownloads a file.
Initiate callStarts a voice or video call.
API callMakes a request to a configured endpoint.
Custom callbackTriggers custom handling in your app.

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:
ComponentUse case
Product CardA product with image, details, and a call to action.
Order ConfirmationOrder summary with status.
Order TrackingA delivery timeline.
Event CardEvent details with date and location.
AnnouncementNews or an update.
Quick Reply ButtonsTappable response options.
FeedbackA quick rating or response prompt.
Data TableStructured rows of data.
CarouselA horizontally scrollable set of cards.

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.