Skip to content

Bubble

The speech bubble for a message's text, in seven variants on the tokens. A bubble can be a button, for suggested replies.

Sourcecomponents/bubble.tsx
Primary bubble
Secondary bubble
Muted bubble
Tinted bubble
Outline bubble
Ghost: no fill, for long answers that read like a document.
Destructive bubble

Usage

When to use

Use when

The text of a message. primary for the user, secondary or ghost for the assistant, destructive for a failed send; render a button for a suggested reply

Don’t use when

Callouts on a page (use Alert); content blocks (use Card)