Skip to content
↑↓ to navigate↵ to openesc to close

Menu

Message Bubble

Animated Surfaces

MessageBubble.vue
What should we include in the first release?
Start with the smallest workflow that still feels complete.

With Avatars

MessageBubble.vue
YouNow
Can you turn these notes into a launch update?

Show More

MessageBubble.vue
AssistantSummary

The release is ready for a focused rollout. The main conversation flow, keyboard navigation, error recovery, and reduced-motion behavior are all covered.

I would keep advanced workflow controls out of this version. They add configuration without improving the first-run experience, and the usage data from this release will give us a better basis for those decisions.

Before publishing, run the accessibility suite once more and verify the streaming behavior with a long response on a smaller viewport.

API Reference

MessageBubble

variant?
MessageBubbleVariant
Defaultsoft
align?
MessageBubbleAlign

Defaults to the surrounding Message alignment when omitted.

Default—
animateIn?
boolean

Plays the bubble entrance once when this component mounts.

Defaultfalse
labels?
Partial<MessageBubbleMessages>

Override any built-in string.

Default—
className?
string
Default—
layout?
boolean | "position" | "size" | "preserve-aspect"

Enables shared-layout tracking of the bubble row.

Defaultfalse

MessageBubbleContent

render?
string | object

Replaces the content element while preserving bubble styling.

Defaultdiv
className?
string
Default—

MessageBubbleGroup

spacing?
"compact" | "default"
Defaultcompact
className?
string
Default—

MessageBubbleCollapsible

v-model:open?
boolean
Defaultundefined
defaultOpen?
boolean
Defaultfalse
collapsedLines?
2 | 3 | 4 | 5 | 6
Default4
moreLabel?
string

Replaces the default "Show more" text.

Default—
lessLabel?
string

Replaces the default "Show less" text.

Default—
contentClassName?
string
Default—
triggerClassName?
string
Default—
className?
string
Default—
labels?
Partial<typeof messageBubbleMessages>

Override any built-in string.

Default—
@open-change?
(value: boolean) => void
Default—

Install

Add it with your package manager, or copy the source manually.

Run it in a project set up with shadcn-vue. The source is copied to components/beui and its dependencies are added to your package.json. Read the shadcn-vue guide

bunx --bun shadcn-vue@latest add @beui-vue/message-bubble

Import the shared styles once in your application.

TSUsage
import MessageBubble from '@/components/beui/agents/MessageBubble.vue'
import '@/components/beui/styles.css'

Composition

Place the bubble inside message content so identity and layout remain separate from the visible response surface.

Message
├── MessageAvatar
└── MessageContent
    └── MessageBubble
        └── MessageBubbleContent

Note: Message adds sender alignment, metadata, and avatar placement. Streaming Response provides the active and completed response lifecycle.

How it works

A bubble is the visible surface of one message, not the conversation itself. It should give content a clear reading shape without taking ownership of sender identity, delivery, or scroll behavior.

Also on React Native. Six surfaces that pop from their corner, and a show more.(opens in a new tab)

Used in these Pro blocks

Updated