Chat
Platform-agnostic chat UI with four themes: default, whatsapp, imessage, and slack. Accepts structured Chat data (use with whatsapp-parser or build manually).
core/chatInstallation
1 · Add registry to components.json
2 · Install component
Examples
Default theme
Structured messages with sent/received layout.
WhatsApp theme
API Reference
| Prop | Type | Default | Description |
|---|---|---|---|
chatreq | Chat | — | Structured chat data with participants and messages. |
currentUser | string | — | Participant ID for the 'sent' side of the conversation. |
theme | "default" | "whatsapp" | "imessage" | "slack" | "default" | Visual theme of the chat UI. |
showTimestamps | boolean | true | Show message timestamps. |
showAvatars | boolean | true | Show participant avatars. |
groupConsecutive | boolean | true | Group consecutive messages from the same sender. |
timeFormat | "12h" | "24h" | "24h" | Timestamp format. |