The hotglue widget allows you to offer native, inline integrations in your app with a few lines of code.
The pop-up widget can be opened with Vanilla Javascript, React, or Next.js
The inline Connections Component can be used via React or Next.js
HotglueConfig
provider as a higher order component in your React app. For example, in index.js
:
useHotglue
hook:
HotglueConfig
on your page and configure it.
HomeComponent
. Inside of it you can launch the widget using the useHotglue hook:
connections
component.
head
tag.
Default method
Async method
HotGlue.link(<tenant id>, <flow id>, <source>, <preloaded>, <options>)
. In the example below, we also use options
to hide the back button and add a listener to close the widget once the source is successfully linked.
HotGlue.open(<tenant id>)