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

Menu

Message

Preview

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

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

Import the shared styles once in your application.

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

API Reference

Message

from
"user" | "assistant"
Default—
animateIn?
boolean

Plays a trailing-edge pop-up once when this message row mounts.

Defaultfalse
labels?
Labels

Override any built-in string.

Default—
className?
string
Default—

MessageGroup

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

MessageAvatar

placeholder?
boolean

Keep an empty avatar slot so grouped messages remain aligned.

Default—
className?
string
Default—

MessageContent

className?
string
Default—

MessageHeader

className?
string
Default—

MessageFooter

className?
string
Default—

MessageMarker

className?
string
Default—

MessageTyping

label?
string
Default—
className?
string
Default—

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

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—

MessageBubbleContent

render?
string | object

Replaces the content element while preserving bubble styling.

Defaultdiv
className?
string
Default—

MessageBubbleGroup

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

MessageScroller

followOutput?
boolean

Keep streamed output pinned while the reader remains near the end.

Defaulttrue
followThreshold?
number

Distance from the end that still counts as following the output.

Default56
smooth?
boolean

Smoothly follow growing content.

Defaulttrue
@follow-change?
(following: boolean) => void

Reports when the reader leaves or returns to the live edge.

Default—
label?
string

Accessible label for the scrollable transcript.

Default—
busy?
boolean

Marks the transcript as waiting for more streamed content.

Default—
navigation?
"rail"

Adds a compact rail for navigating between rendered Message rows.

Default—
navigationLabel?
string

Accessible label for the optional message navigation rail.

Default—
viewportClassName?
string
Default—
contentClassName?
string
Default—
railClassName?
string
Default—
viewportRef?
((node: HTMLElement | null) => void) | { value: HTMLElement | null } | null

Mirrors the React `viewportRef`: a callback or a ref-like object.

Default—
viewportProps?
{ onScroll?: (event: Event) => void onWheel?: (event: WheelEvent) => void onTouchStart?: (event: TouchEvent) => void onKeyDown?: (event: KeyboardEvent) => void [key: string]: unknown }

Extra attributes for the scrollable section. Handlers are composed, not replaced.

Default—
contentProps?
Record<string, unknown>

Extra attributes for the log container.

Default—
labels?
Partial<MessageScrollerMessages>

Override any built-in string.

Default—
className?
string
Default—
#default?
slot
Default—

Composition

Build each conversation row from independent identity, content, and metadata primitives.

MessageGroup
└── Message
    ├── MessageAvatar
    └── MessageContent
        ├── MessageHeader
        ├── MessageBubble
        └── MessageFooter

Note: Message Bubble supplies the visual surface inside the row. Message Scroller positions message rows inside a reader-aware transcript. Agent Activity renders progressive agent work as message content.

How it works

A message is a conversation row. It coordinates the avatar, metadata, content surface, and delivery details while allowing the content itself to be a bubble, an agent activity, a tool result, or a composed response.

Also on React Native. Rows that rise out of their corner, with avatars and typing dots.(opens in a new tab)

Updated