Atelier UI

搜索组件…

搜索组件…

Chat Messages

聊天消息:按发送者分组的气泡、已发送/已读回执、输入中动画,自动滚动到底部。

在沙盒中编辑

复制一段给 AI 编程工具的提示词,包含源码、依赖和用法

属性

ChatMessagesProps

同时支持以下类型的全部属性: Omit<React.ComponentProps<"div">, "onChange">

属性类型默认值说明
messages* 必填ChatMessage[]——
partnerstring"Them"—
typingbooleanfalseShow the animated typing bubble
onSend(text: string) => void——

安装

$ npx shadcn@latest add https://chromotion.dev/r/chat-messages.json

同类组件