Skip to content

MessageBubble

A chat message bubble, in (left) or out (right).

Group: Lists · Kind: macro · in the lite catalog

example

Is the printer fixed?

side · in · author + attachment
spezl
IMG_2041.jpg

There you go.

a conversation

Is the printer fixed?

Yes, driver's updated. Try again.

Send me the photo from the Wiesn I put on the desktop.

On its way…

Open in the playground

The same specimen painted by React, SwiftUI, Compose and gpui.

exponential-ui-message-bubble on Web
exponential-ui-message-bubble on iOS
exponential-ui-message-bubble on Android
exponential-ui-message-bubble on Desktop
status · sending

Is the printer fixed?

status · sent

Is the printer fixed?

Prop Type Required Bindable Description
text markdown yes yes The message.
side in | out – – out = the viewer’s. Default "in".
time string – yes Under the text.
status sending | sent | read – yes Delivery, out only.
author string – yes Caption above, in only.

None.

  • attachment: one component by id

none

No basic catalog component maps here.

Box · Icon · Markdown · Text

Role: group

group labelled by author, else time; the delivery icon is labelled sending/sent/read

Not focusable; no keys.

Recipe parts: MessageBubble/root MessageBubble/bubble MessageBubble/author MessageBubble/text MessageBubble/footer MessageBubble/time MessageBubble/status

Keyed by: side status :hover :pressed :focus :disabled :checked :open :selected :invalid :dragover

Themes · Write a theme

Icon · Markdown · Text · Section · Group · Trace · TraceItem · Plan