Bubble 气泡
Bubble 组件用于承载对话内容的气泡组件,支持透明背景、自定义加载动画等。
代码演示
参数
Bubble
属性 | 说明 | 类型 | 默认值 |
---|
text | The text to display in the bubble.
@description The content of the bubble, which can include Markdown syntax. | string (必填) | - |
background | Whether to display the background of the bubble. | "transparent" | "solid" | solid |
pending | Custom pending content to display when pending is true.
@description If not provided, will use default dots animation. | React.ReactNode | - |
isPending | Whether the bubble is in pending state. | boolean | - |
Avatar
BubbleList
属性 | 说明 | 类型 | 默认值 |
---|
background | How to display the background of the bubbles. | "transparent" | "solid" | "left-solid" | "right-solid" | right-solid |