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: README.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -286,15 +286,15 @@ Note: For `<Chatbox>` and `<Popup>`, you must provide exactly one of `conversati
286
286
287
287
Accepted props:
288
288
289
-
- `url: string` - The URL you want to load inside the HTML panel. The URL can be absolute or relative. We recommend using same origin pages to have better control of the page. Learn more about HTML Panels and same origin pages [here](https://talkjs.com/docs/Features/Customizations/HTML_Panels/)
289
+
- `url: string` - The URL you want to load inside the HTML panel. The URL can be absolute or relative. Any child components provided to this component will only be rendered if `url` has the same origin as the parent page. Learn more about HTML Panels and same origin pages [here](https://talkjs.com/docs/Features/Customizations/HTML_Panels/)
290
290
291
291
- `height?: number` - Optional. The panel height in pixels. Defaults to `100px`.
292
292
293
-
- `show?: boolean` - Optional. Sets the visibility of the panel. Defaults to `true`.
293
+
- `show?: boolean` - Optional. Sets the visibility of the panel. Defaults to `true`. Changing this prop is equivalent to calling [`HtmlPanel.show()`](https://talkjs.com/docs/Reference/JavaScript_Chat_SDK/HtmlPanel/#HtmlPanel__show) and [`HtmlPanel.hide()`](https://talkjs.com/docs/Reference/JavaScript_Chat_SDK/HtmlPanel/#HtmlPanel__hide), while re-rendering the component calls [`HtmlPanel.destroy()`](https://talkjs.com/docs/Reference/JavaScript_Chat_SDK/HtmlPanel/#HtmlPanel__destroy) and [`createHtmlPanel()`](https://talkjs.com/docs/Reference/JavaScript_Chat_SDK/Chatbox/#Chatbox__createHtmlPanel) in the background.
294
294
295
295
- `conversationId?: string` - Optional. If given, the panel will only show up for the conversation that has an `id` matching the one given.
296
296
297
-
- `children: React.ReactNode` - The content that gets rendered inside the `<body>` of the panel.
297
+
- `children?: React.ReactNode` - Optional. The content that gets rendered inside the `<body>` of the panel.
0 commit comments