Naar de inhoud springen
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.

Het voorbeeld draait op voorbeeldgegevens. Het heeft geen netwerk en geen kanaal nodig.

Installatie

Voer dit uit in een shadcn-project. De bestanden worden naar je eigen code gekopieerd.

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

Gebruik

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

<YuvaChatThread chat={chat} />

Props

YuvaChatThreadProps

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

Labels

De labels staan op Yuva chat.

Afhankelijkheden

Als je dit item installeert, worden ook de volgende items toegevoegd.

Componenten van shadcn/ui

Andere Yuva-items

npm-pakketten