跳到內容
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 套件