You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/api/hooks.md
+1
Original file line number
Diff line number
Diff line change
@@ -428,6 +428,7 @@ The `useTextArea` hook allows you to track and manage the chatbot's text area fi
428
428
| getTextAreaValue | `function` | Retrieves the string value inside the text area. |
429
429
| setTextAreaValue | `asyncfunction` | Sets the value inside the text area, identical to `params.setTextAreaValue` detailed [**here**](/docs/api/params#settextareavalue). |
430
430
| focusTextArea | `function` | Focuses on the text area. |
431
+
| blurTextArea | `function` | Blurs (lose focus of) the text area. |
| showScrollbar |`boolean`| false | Specifies whether scrollbar will be shown when chat messages overflow the window. |
318
+
| showTypingIndicator |`boolean`| true | Specifies whether typing indicator will be shown when a block is being processed. |
317
319
| autoJumpToBottom |`boolean`| false | Specifies whether new messages will always send the user to the bottom of the chat window (recommended to keep `false` as this can be disruptive). |
318
320
| showMessagePrompt |`boolean`| true | Specifies whether to show a message prompt when new messages are received while a user is scrolling the window. |
319
321
| messagePromptText |`string`| "New Messages ↓" | The text to be displayed on the message prompt shown. |
@@ -515,7 +517,7 @@ Properties here handle the voice to text feature (**feature is available only on
| defaultToggledOn |`boolean`| false | Specifies whether chatbot voice is toggled on by default. |
517
519
| language |`string`| "en-US" | The expected language from the user, set by a string representing a [**BCP 47 language tag**](https://www.techonthenet.com/js/language_tags.php). |
518
-
| timeoutPeriod |`number`| 10000 | The timeout period in milliseconds for chatbot voice before it automatically toggles off. |
520
+
| timeoutPeriod |`number`| 10000 | The timeout period in milliseconds for chatbot voice before it automatically toggles off (set to `0` to disable automatic toggle off). |
519
521
| autoSendDisabled |`boolean`| false | Specifies whether auto-sending of voice messages into the chat is disabled. |
520
522
| autoSendPeriod |`number`| 1000 | The period in milliseconds after which voice messages are automatically sent. |
521
523
| sendAsAudio |`boolean`| false | Specifies whether voice input will be sent as an audio file instead (note that `autoSend` features will not work if this is `true`). |
0 commit comments