Skip to main content
You can install the hotglue widget via npm:
Next, you can pass your environment ID and public API key into the useHotglue hook to initialize the SDK and access the various functions:
For custom validation before credentials are submitted, call setCredentialsValidator. The generic passed to setCredentialsValidator<TConfig>() types oldConfig and newConfig in the validator. See the full setCredentialsValidator reference.

Using the Widget

To allow the hotglue Widget to render in your DOM, you can include the <Widget/> component anywhere in a mounted component:

Using the Connections Component

You can additionally render the inline Connections component with <Connections/>:

Using the widget with Tailwind CSS or similar frameworks

If you’re using the widget alongside a CSS framework like Tailwind CSS, its base reset styles (Preflight) may affect the widget’s appearance.
To ensure the widget’s styles are applied correctly, import its stylesheet manually in your global CSS file: