Salta al contingut
Yuva chat conversationsMenú

Yuva chat conversations

The visitor's conversations as rows with the last message, time and an unread dot, and an empty state.

No conversations yet
Start one and we will answer here.

La vista prèvia fa servir dades d'exemple. No necessita xarxa ni canal.

Instal·lació

Executa això en un projecte de shadcn. Els fitxers es copien al teu propi codi.

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

Ús

tsx
import { YuvaChatConversations } from "@/components/yuva-chat-conversations"

<YuvaChatConversations chat={chat} onOpen={(id) => setView("thread")} />

Props

YuvaChatConversationsProps

PropTipus
chatYuvaChatState
labels?Partial<YuvaChatLabels>
locale?string
onOpen?(id: string | null) => void
className?string

Etiquetes

Les etiquetes figuren a Yuva chat.

Dependències

Instal·lar aquest element també afegeix el següent.

Components de shadcn/ui

Altres elements de Yuva

Paquets npm