Skip to content
RefineUI

Bubble

Chat-style message bubble for conversational UI.

Bubble renders a message surface for chat and conversation layouts. Pair with BubbleContent, optional BubbleReactions, and BubbleGroup for stacked messages.

Want to catch up later?
On my way.
See you there.
Sounds good.

Overview

Machine-readable contract from Component Spec.

component: bubbleexport: Bubbleversion: 1attributes: data-refineui=bubble

Anatomy

Partdata-refineui
rootbubble
contentbubble-content
groupbubble-group
reactionsbubble-reactions
surfacebubble-surface

Variants

AxisValues
variantdefault, secondary, muted, tinted, outline, ghost, destructive

Layout

PropertyValue
directionlogical
rtltrue
npm install @refineui/react @refineui/tokens
import { Bubble, BubbleContent, BubbleGroup } from "@refineui/react";
<Bubble variant="muted" align="start">
<BubbleContent>Want to catch up later?</BubbleContent>
</Bubble>
<Bubble variant="default" align="end">
<BubbleContent>Sounds good.</BubbleContent>
</Bubble>
PropDefaultTypeDescription
variant"default" | "secondary" | "muted" | "tinted" | "outline" | "ghost" | "destructive"Visual style.
align"start" | "end"Message alignment.

BubbleContent / BubbleReactions / BubbleGroup

Section titled “BubbleContent / BubbleReactions / BubbleGroup”

Composition slots for body text, reactions, and stacked groups. See the preview for structure.