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
@@ -265,7 +278,8 @@ Properties here handle the playing of audio for messages sent by the bot. When t
265
278
| voiceNames |`Array<string>`| "Google US English Male" | An array of voice names for the chatbot audio. Voices are based off what is provided in [**SpeechSynthesis**](https://developer.mozilla.org/en-US/docs/Web/API/SpeechSynthesis/getVoices) - you can provide as many voices as you wish (**the first voice matched will be used**). |
266
279
| rate |`number`| 1 | The rate (between 0.1 to 10) at which chatbot audio is played. |
267
280
| volume |`number`| 1 | The volume (between 0 to 1) at which chatbot audio is played. |
268
-
| icon |`string`| - | Image import or URL for the audio icon to be displayed in the chatbot interface. |
281
+
| icon |`SVGElement`\|`string`| - | SVG element import or image URL for the audio icon to be displayed in the chatbot interface. |
282
+
| iconDisabled |`SVGElement`\|`string`| - | SVG element import or image URL for the audio icon to be displayed in the chatbot interface **when it is disabled**. |
269
283
270
284
### botBubble
271
285
@@ -286,7 +300,7 @@ Properties here handle the chat button that is used to toggle chat window. Note
| icon |`string`| - |Image import or URL for the chatbot button. |
303
+
| icon |`SVGElement`\|`string`| - |SVG element import or image URL for the chatbot button. |
290
304
291
305
### chatWindow
292
306
@@ -327,7 +341,7 @@ Properties here handle the chat input sent by the user. Note that when chatbot i
327
341
| showCharacterCount |`boolean`| false | Specifies whether to show the character count and limit (note that this value is **ignored if**`characterLimit`**is not set to 0 or more**). |
328
342
| characterLimit |`number`| -1 | The maximum number of characters allowed in the chat input, defaults to -1 (no limit). |
329
343
| botDelay |`number`| 1000 | The delay in milliseconds before chatbot responses are displayed (**minimum value of 500**). |
330
-
| sendButtonIcon |`string`| - |Image import or URL for the send button to be displayed in the chat input. |
344
+
| sendButtonIcon |`SVGElement`\|`string`| - |SVG element import or image URL for the send button to be displayed in the chat input. |
331
345
| blockSpam |`boolean`| true | Specifies whether user input should be blocked while the bot is processing its next action (highly recommended to keep this `true` as spamming messages can result in unexpected behaviors). |
332
346
| sendOptionOutput |`boolean`| true | Specifies whether to send user option as a message to the bot. |
333
347
| sendCheckboxOutput |`boolean`| true | Specifies whether to send user selection(s) as a message to the bot. |
@@ -340,7 +354,8 @@ Properties here handle the emoji picker. Note that this feature will be disabled
| icon |`string`| - | Image import or URL for the emoji icon to be displayed in the chatbot footer. |
357
+
| icon |`SVGElement`\|`string`| - | SVG element import or image URL for the emoji icon to be displayed in the chatbot footer. |
358
+
| iconDisabled |`SVGElement`\|`string`| - | SVG element import or image URL for the emoji icon to be displayed in the chatbot footer **when it is disabled**. |
344
359
| list |`Array<string>`|["😀", "😃", "😄", "😅", "😊", "😌", "😇", "🙃", "🤣", "😍", "🥰", "🥳", "🎉", "🎈", "🚀", "⭐️"]| An array of emojis available for selection in the emoji picker. |
345
360
346
361
### event
@@ -378,7 +393,8 @@ Properties here handle the file attachment button.
378
393
| accept |`string`| * | The accepted file types for file attachments (e.g. `".png, .jpg"` to restrict file types or `*` to accept all file types). |
379
394
| sendFileName |`boolean`| true | Specifies whether to send a message with name(s) of file attachments as a message to the bot. |
380
395
| showMediaDisplay |`boolean`| true | Specifies whether file attachments that are either image, video or audio will be displayed (previewed). |
381
-
| icon |`string`| - | Image import or URL for the file attachment icon to be displayed in the chatbot footer. |
396
+
| icon |`SVGElement`\|`string`| - | SVG element import or image URL for the file attachment icon to be displayed in the chatbot footer. |
397
+
| iconDisabled |`SVGElement`\|`string`| - | SVG element import or image URL for the file attachment icon to be displayed in the chatbot footer **when it is disabled**. |
382
398
383
399
### footer
384
400
@@ -416,7 +432,7 @@ Properties here handle the chat header.
416
432
| title |`string \| JSX.Element`| - | The title to be displayed in the chatbot header. |
417
433
| showAvatar |`boolean`| true | Specifies whether the avatar should be displayed in the chatbot header. |
418
434
| avatar |`string`| - | Image import or URL for the avatar to be displayed in the chatbot header. ||
419
-
| closeChatIcon |`string`| - |Image import or URL for the close chat icon to be displayed in the chatbot header. |
435
+
| closeChatIcon |`SVGElement`\|`string`| - |SVG element import or image URL for the close chat icon to be displayed in the chatbot header. |
420
436
| buttons |`Array<string \| JSX.Element>`|[Button.NOTIFICATION_BUTTON, Button.AUDIO_BUTTON, Button.CLOSE_CHAT_BUTTON]| An ordered list of buttons to show in the header (supports both default buttons and custom components) - for the list of default buttons, import the `Button` constant from the library. |
421
437
422
438
### notification
@@ -429,7 +445,8 @@ Properties here handle the message notification sent to the user. When toggled o
429
445
| defaultToggledOn |`boolean`| true | Specifies whether chatbot notifications are toggled on by default. |
430
446
| volume |`number`| 0.2 | The volume (between 0 to 1) at which notification sound is played. ||
431
447
| notificationSound |`string`| - | The sound to be played for chatbot notifications. |
432
-
| icon | `string` | - | Image import or URL for the notification icon to be displayed in the chatbot header.
448
+
| icon | `SVGElement`\|`string` | - | SVG element import or image URL for the notification icon to be displayed in the chatbot header.
449
+
| iconDisabled | `SVGElement`\|`string` | - | SVG element import or image URL for the notification icon to be displayed in the chatbot header **when it is disabled**.
433
450
| showCount |`boolean`| true | Specifies whether unread message count is shown on the top right corner of the chatbot button (this option is ignored if notification is `disabled`). |
434
451
435
452
### sensitiveInput
@@ -488,4 +505,5 @@ Properties here handle the voice to text feature (**feature is available only on
488
505
| autoSendDisabled |`boolean`| false | Specifies whether auto-sending of voice messages into the chat is disabled. |
489
506
| autoSendPeriod |`number`| 1000 | The period in milliseconds after which voice messages are automatically sent. |
490
507
| 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`). |
491
-
| icon |`string`| - | Image import or URL for the voice icon to be displayed in the chatbot interface. |
508
+
| icon |`SVGElement`\|`string`| - | SVG element import or image URL for the voice icon to be displayed in the chatbot interface. |
509
+
| iconDisabled |`SVGElement`\|`string`| - | SVG element import or image URL for the voice icon to be displayed in the chatbot interface **when it is disabled**. |
0 commit comments