No conversations yet
Start one and we will answer here.
Die Vorschau läuft mit Beispieldaten. Sie braucht weder Netzwerk noch Kanal.
tsx
import { YuvaChatConversations } from "@/components/yuva-chat-conversations"
import { useYuvaChat } from "@/hooks/use-yuva-chat"
export function Conversations() {
const chat = useYuvaChat({
server={process.env.NEXT_PUBLIC_YUVA_SERVER}
channel={process.env.NEXT_PUBLIC_YUVA_CHANNEL},
})
return <YuvaChatConversations chat={chat} />
}Installation
Führen Sie das in einem shadcn-Projekt aus. Die Dateien werden in Ihren eigenen Code kopiert.
Shell
npx shadcn@latest add https://useyuva.com/r/yuva-chat-conversations.jsonShell
pnpm dlx shadcn@latest add https://useyuva.com/r/yuva-chat-conversations.jsonShell
yarn dlx shadcn@latest add https://useyuva.com/r/yuva-chat-conversations.jsonShell
bunx --bun shadcn@latest add https://useyuva.com/r/yuva-chat-conversations.jsonVerwendung
tsx
import { YuvaChatConversations } from "@/components/yuva-chat-conversations"
<YuvaChatConversations chat={chat} onOpen={(id) => setView("thread")} />Props
YuvaChatConversationsProps
| Prop | Typ |
|---|---|
chat | YuvaChatState |
labels? | Partial<YuvaChatLabels> |
locale? | string |
onOpen? | (id: string | null) => void |
className? | string |
Beschriftungen
Die Beschriftungen stehen auf der Seite Yuva chat.
Abhängigkeiten
Die Installation dieses Elements fügt auch Folgendes hinzu.