🚧 MateChat React 文档仍在开发中

Bubble 气泡

Bubble 组件用于承载对话内容的气泡组件,支持透明背景、自定义加载动画等。

代码演示

参数

Bubble

属性说明类型默认值
textThe text to display in the bubble. @description The content of the bubble, which can include Markdown syntax.string (必填)-
backgroundWhether to display the background of the bubble."transparent" | "solid"solid
pendingCustom pending content to display when pending is true. @description If not provided, will use default dots animation.React.ReactNode-
isPendingWhether the bubble is in pending state.boolean-

Avatar

属性说明类型默认值

BubbleList

属性说明类型默认值
backgroundHow to display the background of the bubbles."transparent" | "solid" | "left-solid" | "right-solid"right-solid
ON THIS PAGE