Message
Preview
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
Download the release archive to your project root, then install the local file.
Import the shared styles once in your application.
API Reference
Message
from"user" | "assistant"—animateIn?booleanPlays a trailing-edge pop-up once when this message row mounts.
falselabels?LabelsOverride any built-in string.
—className?string—MessageGroup
spacing?"compact" | "default"compactclassName?string—MessageAvatar
placeholder?booleanKeep an empty avatar slot so grouped messages remain aligned.
—className?string—MessageContent
className?string—MessageHeader
className?string—MessageFooter
className?string—MessageMarker
className?string—MessageTyping
label?string—className?string—MessageBubble
variant?MessageBubbleVariantsoftalign?MessageBubbleAlignDefaults to the surrounding Message alignment when omitted.
—animateIn?booleanPlays the bubble entrance once when this component mounts.
falselabels?Partial<MessageBubbleMessages>Override any built-in string.
—className?string—layout?boolean | "position" | "size" | "preserve-aspect"Enables shared-layout tracking of the bubble row.
falseMessageBubbleCollapsible
v-model:open?booleanundefineddefaultOpen?booleanfalsecollapsedLines?2 | 3 | 4 | 5 | 64moreLabel?stringReplaces the default "Show more" text.
—lessLabel?stringReplaces the default "Show less" text.
—contentClassName?string—triggerClassName?string—className?string—labels?Partial<typeof messageBubbleMessages>Override any built-in string.
—@open-change?(value: boolean) => void—MessageBubbleContent
render?string | objectReplaces the content element while preserving bubble styling.
divclassName?string—MessageBubbleGroup
spacing?"compact" | "default"compactclassName?string—MessageScroller
followOutput?booleanKeep streamed output pinned while the reader remains near the end.
truefollowThreshold?numberDistance from the end that still counts as following the output.
56smooth?booleanSmoothly follow growing content.
true@follow-change?(following: boolean) => voidReports when the reader leaves or returns to the live edge.
—label?stringAccessible label for the scrollable transcript.
—busy?booleanMarks the transcript as waiting for more streamed content.
—navigation?"rail"Adds a compact rail for navigating between rendered Message rows.
—navigationLabel?stringAccessible label for the optional message navigation rail.
—viewportClassName?string—contentClassName?string—railClassName?string—viewportRef?((node: HTMLElement | null) => void) | { value: HTMLElement | null } | nullMirrors the React `viewportRef`: a callback or a ref-like object.
—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.
—contentProps?Record<string, unknown>Extra attributes for the log container.
—labels?Partial<MessageScrollerMessages>Override any built-in string.
—className?string—#default?slot—Composition
Build each conversation row from independent identity, content, and metadata primitives.
MessageGroup
└── Message
├── MessageAvatar
└── MessageContent
├── MessageHeader
├── MessageBubble
└── MessageFooterNote: 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.
Updated