共用方式為


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