Lompat ke konten
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.

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

Penggunaan

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

<YuvaChatComposer chat={chat} />

Props

YuvaChatComposerProps

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