@react-email/components. This lets you send structured, branded messages without writing raw HTML.
Card structure
A card has atype, title, optional subtitle, and children array. Children can be text blocks, dividers, link buttons, or action groups.
Child element types
| Type | Fields | Description |
|---|---|---|
text | content | Plain text paragraph |
divider | — | Horizontal rule |
link-button | label, url | Clickable button that opens a URL |
actions | children | Container for link buttons |
Sending a card
Pass the card object and afallbackText string to thread.post(). The fallback is used by email clients that don’t render HTML.
Always include
fallbackText. Some email clients strip HTML entirely, and the fallback text is what recipients will see in that case.Try it yourself
Welcome Cards Example
Full working example that sends a styled card on first contact