
Components
Balances
Embed the balances component to display a user’s bank accounts and available balances.

Was this page helpful?
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Embed the balances component to display a user’s bank accounts and available balances.

import { EmbeddedProvider, BalancesWidget } from '@tesouro/embedded-components-react';
export default function DashboardPage() {
return (
<EmbeddedProvider
userId={currentUser.id}
userEmail={currentUser.email}
widgetTokenRefreshUrl="/api/widget-token"
>
<BalancesWidget accountsPageUrl="/banking/accounts" />
</EmbeddedProvider>
);
}
| Prop | Required | Description |
|---|---|---|
accountsPageUrl | No | URL to navigate to when a user clicks into an account |
<embedded-balances-widget
data-user-id="YOUR_USER_ID"
data-widget-token-refresh-url="/api/widget-token"
data-accounts-page-url="/banking/accounts"
></embedded-balances-widget>
Was this page helpful?