We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a96d7df commit 342271eCopy full SHA for 342271e
docs/examples/custom_options.md
@@ -16,16 +16,20 @@ const MyChatBot = () => {
16
17
// setup your own bot options state
18
const [botOptions, setBotOptions] = React.useState({
19
+ // includes the default values in bot options before overriding
20
...defaultBotOptions,
21
theme: {
22
+ // includes the default values for each section before overriding
23
...defaultBotOptions.theme,
24
embedded: true
25
},
26
chatHistory: {
27
+ ...defaultBotOptions.chatHistory,
28
storageKey: "example_custom_options"
29
30
// remember to enable custom bot options under the advance section
31
advance: {
32
+ ...defaultBotOptions.advance,
33
useCustomBotOptions: true
34
}
35
});
0 commit comments