Cards
Each adapter renders card components in its platform's native format: Block Kit on Slack, Adaptive Cards on Teams, embeds or Components on Discord, and Cards on Google Chat.
All components support both function-call and JSX syntax. Function-call syntax is recommended for better type inference.
Card
Top-level container for a rich message.
Prop
Type
Text
Text content element. Use CardText instead of Text in JSX to avoid conflicts with React's built-in types.
Prop
Type
Button
Interactive button that triggers an onAction handler.
Prop
Type
CardLink
Inline hyperlink rendered as text. Can be placed directly in a card alongside other content, unlike LinkButton which must live inside Actions.
Prop
Type
LinkButton
Button that opens a URL. No onAction handler needed for navigation. On
platforms that emit link-button click events, such as Slack, pass id when you
need a stable action identifier for routing or analytics.
Prop
Type
Actions
Container for buttons and interactive elements. Required wrapper around Button, LinkButton, Select, and RadioSelect.
Section
Groups related content together.
Fields
Renders key-value pairs in a compact, multi-column layout.
Field
A single key-value pair. Must be used inside Fields.
Prop
Type
Image
Embeds an image in the card.
Prop
Type
Table
Structured data display with column headers and rows.
Prop
Type
On platforms with native table support (Slack, Teams, GitHub, Linear), tables render as formatted tables. On Slack, tables render as paginated, sortable data table blocks. On Teams, tables render as the Adaptive Card Table element with grid lines and weighted column widths. Discord card payloads preserve GFM markdown tables. On other platforms (Google Chat, Telegram), tables render as padded ASCII text.
Chart
Data visualization with pie, bar, area, and line charts.
Prop
Type
Pie charts take segments (label + value, rendered as percentages of the total). Bar, area, and line charts take series (named lists of data points) plotted against shared categories, with optional xLabel/yLabel axis titles.
On Slack, charts render as native data visualization blocks. On other platforms, charts fall back to the underlying data rendered as a text table.
Divider
A visual separator between sections.
CardChild types
The children array in Card and Section accepts these element types:
| Type | Created by |
|---|---|
TextElement | Text() |
LinkElement | CardLink() |
ImageElement | Image() |
DividerElement | Divider() |
ActionsElement | Actions() |
SectionElement | Section() |
FieldsElement | Fields() |
TableElement | Table() |
ChartElement | Chart() |
TextInputElement | TextInput() |
TextInput is the same element modals use. On a card, only Teams renders it. Slack, Google Chat, Discord, GitHub, and Linear show its label as text. WhatsApp, Messenger, Twilio, and X omit it.