Skip to Content
SDK 1.14 is out with per-user product usage and typed API errors. Read the changelog →
WidgetsOverview

Widgets

Widgets are one of the three ways to integrate Squire, next to the JavaScript SDK and the REST API . A widget is not a product of its own: it is a complete flow for one of the products, mounted into your application with a single SDK call, so you can ship a feature without building the interface yourself.

Every widget shares the same model:

  • Mounted with squire.mountWidget(selector, widgetName, config) after the SDK is initialized
  • Themed through a theme object with colors, border radius and font
  • Localized in English, Dutch, French and German
  • Emits events through the on method on the widget handle

Widget lifecycle

Widgets follow the same initialization and event flow. For obtaining a token, see authentication.

Available widgets

Last updated on