tawk / tawk-messenger-react

Official React plugin for Tawk messenger
https://www.tawk.to
Other
23 stars 15 forks source link

Doesn't differentiate between embedded and inline chats #22

Open andreemic opened 1 year ago

andreemic commented 1 year ago

All my widgets are rendered as "inline", even the ones that are embedded in Tawk Dashboard and if rendered via js script.

jaoaustero commented 1 week ago

To allow the embed you need to declare embedId and target element.

Embed will render in the element you specificized but it will not have the button to open and close it by default state it will show the whole widget.

For example

return(
    <div id='mydiv'></div>

    <TawkMessengerReact
        :embedId='myDiv'
        .../>
);