Bubble
A speech bubble that shows users one message of a conversation.
A bubble holds one message of a conversation. Its variant and its alignment show users which side of the conversation wrote the message, and its reactions show how others responded to it.
Usage
Examples
Secondary
Muted
Outline
Ghost
Destructive
Start Alignment
End Alignment
Content as Link
Content as Button
Reactions on Top
Reactions on Bottom
Reactions at Start
Reactions at End
Group
API Reference
Bubble
| Prop | variant |
|---|---|
| Type | "default" | "secondary" | "muted" | "outline" | "ghost" | "destructive" |
| Default | "default" |
| Description | Sets the background, the border and the text color of the content, and its hover color when the content renders a link or a button. Ghost removes the background, the padding and the rounded corners of the content and lifts the width limit of the bubble. |
| Prop | align |
|---|---|
| Type | "start" | "end" |
| Default | "start" |
| Description | Places the bubble at the start or the end of the column it sits in, such as a BubbleGroup. With end, the content also moves to the end of the bubble. |
BubbleContent
| Prop | render |
|---|---|
| Type | ReactElement | render function |
| Default | – |
| Description | Replaces the native element or composes the content with another component, such as a link or a button. |
BubbleReactions
| Prop | side |
|---|---|
| Type | "top" | "bottom" |
| Default | "bottom" |
| Description | Sets the edge of the bubble that the reactions overlap. |
| Prop | align |
|---|---|
| Type | "start" | "end" |
| Default | "end" |
| Description | Places the reactions near the left corner of the bubble with start and near the right corner with end. |
BubbleGroup
BubbleGroup stacks the bubbles that belong together in a column. It renders a div and has no props of its own.