Skip to content

Bubble

Bubble component for displaying conversation messages, supporting multiple style variants and interactive effects. The Bubble component is one of the core components for building conversational AI interaction interfaces. It simulates the message bubble style commonly seen in chat applications, supporting text, Markdown rendering, and typewriter animation effects for a more natural and smooth AI conversation experience.

Basic Usage

Variants and Shapes

Markdown

Props

PropertyDescriptionTypeDefault
placementBubble position'start' | 'end''start'
contentBubble contentstring''
typingWhether to enable typewriter effectbooleanfalse
typingOverContent output completion flag, typewriter auto-completes when truebooleantrue
loadingWhether to show loading statebooleanfalse
isMarkdownWhether to render Markdown contentbooleanfalse
variantBubble variant style'filled' | 'outlined' | 'shadow' | 'borderless''filled'
shapeBubble shape'default' | 'round' | 'corner''default'

Slots

Slot NameDescriptionScope Parameters
defaultCustom bubble content, overrides content prop. With typewriter, content gradually fillscontent: string
avatarCustom avatar area-
headerCustom header area-
footerCustom footer area-

Exposes

Method NameDescriptionType
overTyperwriterImmediately complete typewriter effect() => void