Passer au contenu
Yuva chat conversationsMenu

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.

L'aperçu utilise des données d'exemple. Il n'a besoin ni de réseau ni de canal.

Installation

Exécutez ceci dans un projet shadcn. Les fichiers sont copiés dans votre propre code.

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

Utilisation

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

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

Props

YuvaChatConversationsProps

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

Libellés

Les libellés sont listés sur Yuva chat.

Dépendances

L'installation de cet élément ajoute aussi ce qui suit.

Composants de shadcn/ui

Autres éléments Yuva

Paquets npm