Examples
All Variants
Read Receipt
Conversation
Props
ChatMessage
A single chat message rendered as a bubble. Sender messages sit on the right with a green bubble and a delivery tick; receiver messages sit on the left with a grey bubble and an avatar. Supports plain text, a typing indicator, a voice message with waveform, and a deleted-message placeholder. Text bubbles place the timestamp inline after short messages and drop it to the bottom-right corner once the text wraps, so no variant switch is needed for short versus long content.Fired when the audio play/pause button is pressed, with the next playing state.
Render the receiver avatar. Reserves the avatar space when
false so grouped bubbles stay aligned.Delivery status shown on sender messages (a double tick). Ignored for receiver messages.
"read" renders the tick in the read colour.Who sent the message.
"sender" is the current user (right-aligned, green bubble, delivery tick). "receiver" is the other party (left-aligned, grey bubble, with avatar).Relative bar heights (values
0–1) for the "audio" waveform. Defaults to a flat row of dots matching the unplayed design state.Exported types
Also exported from@fanvue/ui: ChatMessageProps, ChatMessageStatus, ChatMessageUser, ChatMessageVariant.
Setup: Installation · Theming