Langkau ke kandungan
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.

Pratonton berjalan dengan data contoh. Ia tidak memerlukan rangkaian atau saluran.

Pemasangan

Jalankan ini dalam projek shadcn. Fail disalin ke kod 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

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

Label

Label disenaraikan di Yuva chat.

Kebergantungan

Memasang item ini turut menambah yang berikut.

Komponen daripada shadcn/ui

Item Yuva lain

Pakej npm