You can use the Fab (Floating Action Button) component to toggle the visibility of the Webchat UI in your application.

Props

imgUrl
string
URL to a custom icon image.
onClick
MouseEventHandler<HTMLButtonElement>
A callback function triggered when the Fab is clicked. Commonly used to toggle the Webchat visibility.