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/chat

Installation

1 · Add registry to components.json

2 · Install component

Examples

Default theme

Structured messages with sent/received layout.

WhatsApp theme

API Reference

PropTypeDescription
chatreq
ChatStructured chat data with participants and messages.
currentUser
stringParticipant ID for the 'sent' side of the conversation.
theme
"default" | "whatsapp" | "imessage" | "slack"Visual theme of the chat UI.
showTimestamps
booleanShow message timestamps.
showAvatars
booleanShow participant avatars.
groupConsecutive
booleanGroup consecutive messages from the same sender.
timeFormat
"12h" | "24h"Timestamp format.