Skip to main content
Embeddable widgets are JavaScript components that drop directly into your web application. These widgets handle complex UI and compliance flows with minimal engineering effort. You can pass in a variety of parameters to customize the look and feel of the widgets so they appear seamless in your application.
Embedded Widgets

Widget catalog

WidgetDescription
Onboarding widgetShows users marketing information about the embedded account, and kicks off the onboarding flow
Balances widgetShows a business’s list of accounts and balances
Accounts widgetAllows a business to browse bank accounts and view or download a specific account’s transactions, statements and detailed information
Insights feed widgetSurfaces important tasks and notifications for users to act on
Link account widgetAllows users to securely link external bank accounts to transfer money to and from
Transfers widgetAllows money to be transferred between (to/from) embedded bank accounts and externally linked accounts
Settings widgetAllows user to view details about their account, update team settings, and get help via the FAQ

Calling widgets

  1. Load the widgets in the <head> tag of your web app
    <script src="https://widgets.tesouro.com/tesouro-widgets.js"></script>
    
  2. Drop them into your app wherever you’d like, making sure to pass in the following 2 values to facilitate Tesouro’s tracking of customers
    • Merchant ID - This is your unique identifier for a business using your platform. Tesouro will store this to be able to differentiate new and existing business customers.
    • User ID - This is your unique identifier for a human user of your platform. Tesouro will store this to be able to differentiate new and existing users.
  3. Customize however you’d like Tesouro’s widgets will default to the font style from your platform (using the inherit CSS keyword), and will default all other styles to what you see in this documentation. You are able to customize the look and feel to match your software platform more closely by passing in a variety of parameters as shown below:
    ParameterExample
    Primary Colordata-primary-color="#d1e0ff"
    Font styledata-font-family="Verdana"
    Font colordata-font-color="#151e32"
    Font Contrast Colordata-contrast-text-color="purple"
    Hyperlink colordata-hyperlink-color="#1a5eea"
    Rounded corner radiusdata-modal-border-radius="0"
    Button colordata-button-color="#1a5eea"
    Button corner radiusdata-button-border-radius="10px"
    Widget Background colordata-widget-background-color="#d1e0ff"
    Widget Border radiusdata-widget-border-radius="10px"
    Modal Background colordata-modal-background-color="#d1e0ff"