Skip to main content
Use the embedded presentation when Blink is one payment method inside your own widget. On desktop, Blink renders inline in an element you provide. On mobile, the same configuration opens Blink’s standard full-screen overlay. The embedded presentation uses the same signer, requestDeposit() request, errors, and result as the standard Deposit SDK integration. You only change how the hosted flow is presented and who owns the surrounding UI.

What the embedded presentation provides

Integration responsibilities

Follow Blink’s size

Add the embedded presentation fields to your standard Deposit configuration. Use the Deposit class so you can subscribe to its resize event.
The SDK automatically applies each reported height to the Blink iframe. embedMaxHeightPx defaults to 90% of the host viewport; pass an explicit value when your widget has a known height limit.
Apply heightPx without a CSS height transition. Blink animates its own height and reports every frame. A second height animation makes the outer panel lag behind the content. Width can transition because preferredWidthPx is a stable preference, not a live measurement.
Blink currently reports:
  • preferredWidthPx: 440
  • minWidthPx: 320
  • heightPx: the current rendered content height
The iframe fills the width you grant it and cannot widen your panel itself. Your panel may start narrower than 320px while Blink is not active, then expand to the reported preferred width when the resize event arrives. The active Blink flow must receive at least minWidthPx; otherwise fixed-width content can overflow. Make sure parent containers do not prevent the panel from expanding:

Match your appearance

Your CSS controls the outer panel. Use appearance to theme the cross-origin Blink UI inside the iframe.
Use opaque #rgb or #rrggbb values. Unsupported values are ignored and reported in the console. Blink derives the remaining palette and enforces contrast for derived text colors. The following remain fixed to preserve screen fit and payment-state meaning:
  • Fonts, type scale, weights, internal spacing, and control radii
  • Blink marks and wordmarks
  • Success, information, warning, and authorization colors
appearance is fixed for the life of a Deposit instance. To change it, destroy the instance and construct a new one. See the Deposit class, events, and TypeScript types for the full API.