Skip to content

Message

Shows a message in a conversation.

Maya

Could you share the latest project brief?

You

I have it here. I will send it with the updated notes.
Sent
message-basic-demo.tsx

Installation

The CLI adds the files, packages, theme variables, and Tailwind plugin that this component uses. Before you run it, set up your project.

Sides

A system message shows no sender or avatar.

Maya Chen joined the conversation.

Maya

Can you check the release notes before Friday?

You

Yes. I will send the corrections here.
Sent
message-demo.tsx

API reference

sender: stringRequired
The sender name. The default accessible name is "Message from {sender}".
side: "incoming" | "outgoing" | "system" = "incoming"
Sets the alignment and the style.
avatar: ReactNode
Shows beside an incoming message.
timestamp: string
The visible time.
dateTime: string
The machine-readable time. Set it to render the timestamp in a time element.
status: string
The delivery status, for example "Sent".
actions: ReactNode
Buttons below the message.