Lompat ke konten
Yuva chat threadMenu

Yuva chat thread

One conversation: grouped messages, day separators, system events, attachments, link bubbles, typing, seen state, a top fade and a scroller that sticks to the bottom with a jump-to-latest pill showing the unread count.

Say hello
Hi, ask us anything about Acme.

Pratinjau berjalan dengan data contoh. Tidak butuh jaringan maupun kanal.

Instalasi

Jalankan ini di proyek shadcn. File disalin ke kode Anda sendiri.

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

Penggunaan

tsx
import { YuvaChatThread } from "@/components/yuva-chat-thread"

<YuvaChatThread chat={chat} />

Props

YuvaChatThreadProps

PropTipe
chatYuvaChatState
labels?Partial<YuvaChatLabels>
locale?string
greeting?string
lined?boolean
className?string

Label

Label tercantum di Yuva chat.

Dependensi

Menginstal item ini juga menambahkan yang berikut.

Komponen dari shadcn/ui

Item Yuva lainnya

Paket npm