次の方法で共有


SendBoxProps interface

SendBoxの Props。

プロパティ

autoFocus

入力ボックスがレンダリングにフォーカスを持っているかどうかを判断するための列挙可能。 未定義の場合、何もレンダリングに焦点を当てない

disabled

テキスト ボックスを無効にする省略可能なブール値

onRenderIcon

SendBox の右側に送信ボタン アイコンをレンダリングするための省略可能なコールバック。

onRenderSystemMessage

SendBox の下にシステム メッセージを表示するオプションのコールバック。

onSendMessage

送信ボタンのクリック時のオプションの上書き動作

onTyping

ユーザーが入力するときに呼び出される省略可能なコールバック

strings

コンポーネントでオーバーライドする省略可能な文字列

styles

ユーザーがカスタム CSS スタイルを含むオブジェクトを渡すことができます。

supportNewline

SendBox の新しい行をサポートする省略可能なブール値。

systemMessage

テキスト ボックスの下のシステム メッセージの省略可能なテキスト

プロパティの詳細

autoFocus

入力ボックスがレンダリングにフォーカスを持っているかどうかを判断するための列挙可能。 未定義の場合、何もレンダリングに焦点を当てない

autoFocus?: "sendBoxTextField"

プロパティ値

"sendBoxTextField"

disabled

テキスト ボックスを無効にする省略可能なブール値

disabled?: boolean

プロパティ値

boolean

onRenderIcon

SendBox の右側に送信ボタン アイコンをレンダリングするための省略可能なコールバック。

onRenderIcon?: (isHover: boolean) => Element

プロパティ値

(isHover: boolean) => Element

onRenderSystemMessage

SendBox の下にシステム メッセージを表示するオプションのコールバック。

onRenderSystemMessage?: (systemMessage: undefined | string) => ReactElement<any, string | JSXElementConstructor<any>>

プロパティ値

(systemMessage: undefined | string) => ReactElement<any, string | JSXElementConstructor<any>>

onSendMessage

送信ボタンのクリック時のオプションの上書き動作

onSendMessage?: (content: string) => Promise<void>

プロパティ値

(content: string) => Promise<void>

onTyping

ユーザーが入力するときに呼び出される省略可能なコールバック

onTyping?: () => Promise<void>

プロパティ値

() => Promise<void>

strings

コンポーネントでオーバーライドする省略可能な文字列

strings?: Partial<SendBoxStrings>

プロパティ値

Partial<SendBoxStrings>

styles

ユーザーがカスタム CSS スタイルを含むオブジェクトを渡すことができます。

styles?: SendBoxStylesProps

プロパティ値

supportNewline

SendBox の新しい行をサポートする省略可能なブール値。

supportNewline?: boolean

プロパティ値

boolean

systemMessage

テキスト ボックスの下のシステム メッセージの省略可能なテキスト

systemMessage?: string

プロパティ値

string