Preskoči na sadržaj
Yuva chat conversationsIzbornik

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.

Pregled radi s primjerom podataka. Ne treba mu mreža ni kanal.

Instalacija

Pokrenite ovo u shadcn projektu. Datoteke se kopiraju u vaš vlastiti kôd.

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

Upotreba

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

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

Props

YuvaChatConversationsProps

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

Oznake

Oznake su navedene na stranici Yuva chat.

Ovisnosti

Instalacijom ovog elementa dodaje se i sljedeće.

Komponente iz shadcn/ui

Ostali Yuva elementi

npm paketi