Skip to main content
Wrap the subtree that renders the widget with DZapWidgetProvider, import styles once, then mount SwapWidget (or ZapWidget).
1

Install

2

Provider + swap

3

Optional: open as a drawer

Use SwapButton or ZapButton instead of the inline form:
The provider loads supported chains from DZap, mounts wallet connectors (EVM, Solana, Bitcoin, Sui), and applies your theme. Until chains load, it shows a short loading state.

Next

Configuration

Chains, providers, hidden UI, defaults.

Swap widget

Props, locking tokens, drawer trigger.

Zap widget

Deposit, withdraw, migrate into DeFi positions.

Theming

Light/dark/auto and custom tokens.
Last modified on August 18, 2026