Skip to content
SevenUI
Sign in
On this page

Bubble

Chat message bubbles for conversational interfaces, with incoming and outgoing styles for AI chat and messaging UIs.

Are we still on for the design review?
I can move it if you need more time.
Yes — see you at 3pm.

Installation

Bash

Usage

Bubble is scoped to the visible message surface. Pair it with Message for row layout (avatar, header, footer) and BubbleGroup for consecutive bubbles from one sender. Make a bubble interactive by rendering its content as a real element: <BubbleContent render={<button />}>.

Examples

Variants

The ghost variant drops the background, padding, and max-width — meant for assistant/AI content that should span the full column.

default
secondary
muted
tinted
outline
ghost
destructive

Reactions

BubbleReactions overlaps the bubble edge; position it with side and align.

We just hit 1,000 installs! 🎉
👍 🎉 3
Shipping the announcement now.
❤️ 1

API reference

Bubble

Extends div.

PropTypeDefault
variant"default" | "secondary" | "muted" | "tinted" | "outline" | "ghost" | "destructive""default"
align"start" | "end""start"

BubbleContent

The message surface. Supports the Base UI render prop to become a button or a for interactive bubbles (hover and focus styles are built in).

PropTypeDefault
renderReact.ReactElementdiv

BubbleReactions

Extends div. Absolutely positioned over the bubble’s edge.

PropTypeDefault
side"top" | "bottom""bottom"
align"start" | "end""end"

BubbleGroup

Extends div. Stacks consecutive bubbles with tight spacing.

Was this page helpful?