דלג לתוכן
Yuva chat conversationsתפריט

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.

התצוגה המקדימה פועלת על נתוני דוגמה. היא לא צריכה רשת ולא ערוץ.

התקנה

הריצו את זה בפרויקט shadcn. הקבצים מועתקים אל הקוד שלכם.

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

שימוש

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

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

Props

YuvaChatConversationsProps

Propסוג
chatYuvaChatState
labels?Partial<YuvaChatLabels>
locale?string
onOpen?(id: string | null) => void
className?string

תוויות

התוויות מפורטות בעמוד Yuva chat.

תלויות

התקנת הפריט הזה מוסיפה גם את הבאים.

רכיבים מ-shadcn/ui

פריטי Yuva אחרים

חבילות npm