Requirements
- Node.js 18+
- React 18+ (React 19 is supported)
Install the widget
The widget depends on@dzapio/wallet. You do not need to install the wallet package separately.
For wallet-only hosts, see Wallet overview.
Stylesheet
Import the bundled CSS once at your app entry (layout,_app, or main.tsx):
Credentials
Vite
Wallet dependencies (Bitcoin in particular) may expect Node globals. If the build fails onBuffer / global / process, add a polyfill:
Vite (vite.config.ts)
@dzapio/wallet and @dzapio/widget.
Next.js
App Router is supported. Mark the widget tree as a client component ('use client') and import styles in that module or in layout.tsx. Next.js usually does not need the Buffer polyfill.
See the Next.js example.