API Reference
Main properties of the widget configuration object.
LiFiWidget and LiFiWidgetDrawer components share the same configuration object.
Name
Type
Default
Description
Example
integrator
string
​
Identifier of the integrator
Ethereum
fromChain
string | number
The user's current wallet chain
Source chain ID or chain abbreviation
ARB
fromToken
string
​
Token Contract Address
0x539bde0d7dbd336b79148aa742883198bbf60342
toChain
string | number
eth
Destination chain ID or chain abbreviation
POL
toToken
string
​
Destination token contract address
0xd6df932a45c0f255f85145f286ea0b292b21c90b
fromAmount
number
0
Token amount to swap
250.5
disabledChains
number[]
​
Chains to disable
[56]
appearance
'light' | 'dark' | 'auto'
'auto'
Default appearance of the widget
'dark'
disableAppearance
boolean
false
Removes appearance settings UI
true
disableTelemetry
boolean
false
Disables sending crash reports and analytics to LI.FI
false
containerStyle
CSSProperties
​
Styles for the widget container element
​See here​
theme
ThemeConfig
​
Sets palette, shape, and typography
​See here​
walletManagement
WidgetWalletManagement
​
Set of callbacks to manage widget wallet state
​See here​
Copy link