Messaging
1 variantChat app blocks with a conversation list, grouped bubbles, read receipts, typing, reactions, and an emoji composer.
Messaging app
Send a message and watch it rise from the composer, step from sending to delivered, then get marked seen as their portrait pops in under it. They type back, the reply lands, and the chat springs to the top of the list. Double-click a bubble to like it, react from the emoji picker, and switch chats as unread badges clear.
Maya Chen
Online
Today
Did you make it up to the ridge?
Seen
Just before sunrise. Worth every step.
Saving you a spot for next weekend?
"use client";
import { Messenger } from "@/components/premium/messenger";
export function MessengerPreview() {
return <Messenger />;
}
Source code is locked
Get access to install premium components and view the full source.
Open dashboardInstall
API Reference
Every prop is optional unless marked required. Data, copy, and colors default to the sample content.
Messenger9 props
conversationsStarting chats, read once on mount. Defaults to the sample chats.
Conversation[]meThe viewer; messages from this id show as outgoing.
MessengerPersonlabelsText overrides merged over the default labels.
Partial<MessengerLabels>livePlay scripted receipts and replies. Turn off when wiring a real backend.
booleanDefault
trueonSendCalled with the chat id and trimmed text when the user sends a message.
((conversationId: string, text: string) => void)onCallCalled with the open chat id when the call button is pressed.
((conversationId: string) => void)onVideoCalled with the open chat id when the video button is pressed.
((conversationId: string) => void)onAttachCalled with the open chat id when the attach button is pressed.
((conversationId: string) => void)classNameClasses merged onto the root element.
string
Types4 types
The object types these props take, field by field.
MessengerPerson4 fields
idRequiredUnique id, matched against each message's sender.
stringnameRequiredDisplay name in the chat list and thread header.
stringavatarRequiredPortrait image URL.
stringonlineShows a green dot and the online label when true.
boolean
Conversation5 fields
idRequiredUnique chat id.
stringpersonRequiredThe other person in the chat.
MessengerPersonmessagesRequiredMessages in order, oldest first.
Message[]unreadUnread count shown as a badge; the first chat starts at 0.
numberrepliesScripted replies played back, one per message the viewer sends.
string[]
MessengerLabels20 fields
titleRequiredChat list heading and the section's accessible name.
stringsearchRequiredSearch field placeholder and accessible name.
stringonlineRequiredThread header status when the person is online.
stringofflineRequiredThread header status when the person is offline.
stringtypingRequiredText shown while the other person is typing.
stringyouRequiredPrefix on the chat preview when you sent the last message.
stringplaceholderRequiredComposer placeholder and accessible name.
stringsendRequiredAccessible name for the send button.
stringemojiRequiredAccessible name for the emoji button.
stringattachRequiredAccessible name for the attach button.
stringcallRequiredAccessible name for the call button.
stringvideoRequiredAccessible name for the video call button.
stringbackRequiredAccessible name for the back button on narrow layouts.
stringsendingRequiredReceipt text while a message is sending.
stringsentRequiredReceipt text once a message is sent.
stringdeliveredRequiredReceipt text once a message is delivered.
stringseenRequiredTooltip and screen reader text for the seen portrait.
stringtodayRequiredDay divider text above the messages.
stringunreadRequiredBuilds the unread part of a chat row's accessible name.
(count: number) => stringlikeHintRequiredHint about double-click to like; not shown anywhere yet.
string
Message7 fields
idRequiredUnique message id.
stringfromRequiredSender id; the viewer's id marks outgoing messages.
stringtextMessage body text.
stringimagePhoto shown in the bubble, with its alt text.
{ src: string; alt: string }timeRequiredCaller-formatted time, such as "9:41 AM".
stringreactionsEmoji reactions shown under the bubble.
Reaction[]statusDelivery state of outgoing messages.
MessageStatus