跳到内容
Yuva chat thread菜单

Yuva chat thread

One conversation: grouped messages, day separators, system events, attachments, link bubbles, typing, seen state, a top fade and a scroller that sticks to the bottom with a jump-to-latest pill showing the unread count.

Say hello
Hi, ask us anything about Acme.

预览使用示例数据运行,不需要网络,也不需要渠道。

安装

在 shadcn 项目中运行。文件会复制到你自己的代码里。

Shell
npx shadcn@latest add https://useyuva.com/r/yuva-chat-thread.json

用法

tsx
import { YuvaChatThread } from "@/components/yuva-chat-thread"

<YuvaChatThread chat={chat} />

Props

YuvaChatThreadProps

Prop类型
chatYuvaChatState
labels?Partial<YuvaChatLabels>
locale?string
greeting?string
lined?boolean
className?string

标签

标签列在 Yuva chat 页面。

依赖

安装此项时还会添加以下内容。

来自 shadcn/ui 的组件

其他 Yuva 项

npm 包