Focused components
Shared props
All focused components accept these optional props in addition to their mode-specific props.Appearance
App metadata
Used in wallet connection dialogs (WalletConnect, etc.):Wallet options
The
wagmiConnectors and decoupleWagmi props were removed in 0xtrails@0.16.0. Wagmi is no longer required by default — pass adapters on the widget’s adapters prop instead. See Adapters.Route options
Debug / dev
General callbacks
These callbacks are available on all focused components (in addition to mode-specific lifecycle callbacks):ChainIdentifier
Allchain fields accept a ChainIdentifier, which can be:
- A chain name string:
"base","ethereum","polygon","arbitrum","optimism","avalanche","bsc","katana", etc. - A numeric chain ID:
8453,1,137, etc. - A viem
Chainobject
PaymentMethod
ThepaymentMethod prop on focused components accepts:
Mode-specific props
See the individual mode pages for full prop details:- Pay —
to.recipient,to.currency,to.chain,to.amount,payMessage,onPaymentStart/Success/Error - Fund —
to,fundMethodsList,hideUnlistedFundMethods,hideSwap,onFundingStart/Success/Error - Swap —
from,to,onSwapStart/Success/Error - Withdraw —
from,to,onWithdrawStart/Success/Error - Earn —
towithcalldata,onEarnStart/Success/Error