コンテンツへスキップ
Yuva chat composerメニュー

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.

プレビューはサンプルデータで動作します。ネットワークもチャネルも不要です。

インストール

shadcn プロジェクトで実行してください。ファイルはあなた自身のコードにコピーされます。

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

使い方

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

<YuvaChatComposer chat={chat} />

Props

YuvaChatComposerProps

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

ラベル

ラベルの一覧は Yuva chat にあります。

依存関係

この項目をインストールすると、次のものも追加されます。

shadcn/ui のコンポーネント

その他の Yuva 項目

npm パッケージ