Skip to main content
The useBlinkDeposit hook wraps the Deposit class with reactive React state. It manages the instance lifecycle and cleans up on unmount.
The React entry point requires react >= 18 as a peer dependency.

Usage

Parameters

The hook accepts a single DepositConfig object. See Deposit Class for the full config reference.
The Deposit instance is created once on first render and destroyed on unmount. The config is read during initialization only. Changing config props after mount does not reconfigure the instance. This includes appearance — changing the theme prop on a mounted component has no effect. Either pass appearance: { theme: 'system' } so the hosted flow tracks the OS theme on its own, or remount the component with a key when your theme changes. See Dark and light mode.
The hook does not expose the embedded presentation’s resize event. Use the Deposit class when embedding Blink inside an aggregator panel.

Return value

Exported types

The React entry point re-exports commonly used types for convenience: