Langkau ke kandungan
Yuva chat composerMenu

Yuva chat composer

A message box with chips for attached files, an attach button, an optional screenshot button, an Enter to send hint and a send button.

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-composer.json

Penggunaan

tsx
import { YuvaChatComposer } from "@/components/yuva-chat-composer"

<YuvaChatComposer chat={chat} />

Props

YuvaChatComposerProps

PropJenis
chatYuvaChatState
labels?Partial<YuvaChatLabels>
locale?string
disabled?boolean
onCapture?() => File | null | undefined | Promise<File | null | undefined>
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