ข้ามไปยังเนื้อหา
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