Skip to content
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.

The preview runs on sample data. It needs no network and no channel.

Installation

Run this in a shadcn project. The files are copied into your own code.

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

Usage

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

<YuvaChatComposer chat={chat} />

Props

YuvaChatComposerProps

PropType
chatYuvaChatState
labels?Partial<YuvaChatLabels>
locale?string
disabled?boolean
onCapture?() => File | null | undefined | Promise<File | null | undefined>
className?string

Labels

The labels are listed on Yuva chat.

Dependencies

Installing this item also adds the following.

Components from shadcn/ui

Other Yuva items

npm packages