Hoppa till innehållet
Yuva chat threadMeny

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.

Förhandsvisningen använder exempeldata. Den behöver varken nätverk eller kanal.

Installation

Kör detta i ett shadcn-projekt. Filerna kopieras in i din egen kod.

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

Användning

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

<YuvaChatThread chat={chat} />

Props

YuvaChatThreadProps

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

Etiketter

Etiketterna finns listade på Yuva chat.

Beroenden

När du installerar det här elementet läggs även följande till.

Komponenter från shadcn/ui

Andra Yuva-element

npm-paket