Skip to content

非公式 / UnofficialCloudflare, Inc. 非提携。アカウント情報は入力しないでください。Not affiliated with Cloudflare, Inc. Do not enter Cloudflare credentials here.Official docsこのサイトについてプライバシー

rtk-chat-composer-ui

最終更新 Markdown で表示Agent セットアップ

@deprecated このコンポーネントは非推奨です。代わりに rtk-chat-composer-view を使用してください。

プロパティ

プロパティ 型 必須 デフォルト 説明
canSendFiles boolean ✅ - ユーザーがファイルメッセージを送信できるかどうか
canSendTextMessage boolean ✅ - ユーザーがテキストメッセージを送信できるかどうか
iconPack IconPack1 ❌ defaultIconPack アイコンパック
prefill { suggestedReplies?: string[]; editMessage?: TextMessage; replyMessage?: TextMessage; } ❌ - コンポーザーに事前入力します
size Size1 ✅ - サイズ
t RtkI18n ❌ useLanguage() 言語

使用例

基本的な使い方

<rtk-chat-composer-ui></rtk-chat-composer-ui>

プロパティを指定する場合

<rtk-chat-composer-ui
 size="md">
</rtk-chat-composer-ui>
<script>
  const el = document.querySelector("rtk-chat-composer-ui");

  el.canSendFiles= true;
  el.canSendTextMessage= true;
</script>

役に立ちましたか?