Skip to main content

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

All chain 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 Chain object

PaymentMethod

The paymentMethod prop on focused components accepts:

Mode-specific props

See the individual mode pages for full prop details:
  • Payto.recipient, to.currency, to.chain, to.amount, payMessage, onPaymentStart/Success/Error
  • Fundto, fundMethodsList, hideUnlistedFundMethods, hideSwap, onFundingStart/Success/Error
  • Swapfrom, to, onSwapStart/Success/Error
  • Withdrawfrom, to, onWithdrawStart/Success/Error
  • Earnto with calldata, onEarnStart/Success/Error