Skip to main content

Widget Component

Properties and types of the LiFiWidget component configuration.

Core Configuration


Form Values (Swap Details)

ToAddress Type


Route Configuration


Filtering Options

Chains

Tokens

Bridges & Exchanges


UI Variants

ModeOptions


Appearance & Theme

WidgetTheme

Theme Components


UI Control

UI control options use object configs where each key is a UI element and the value is a boolean.

DisabledUIConfig

Disable specific UI elements (still visible but not interactive):

HiddenUIConfig

Hide specific UI elements completely:

RequiredUIConfig

Make specific UI elements required:

DefaultUI

Configure default UI states:

Internationalization


Wallet Configuration


SDK Configuration

In Widget v4, disableMessageSigning has moved from sdkConfig.executionOptions to the EthereumProvider configuration. See Wallet Management for details.

Fee Configuration


Explorer URLs


Route Labels

Add custom labels to routes:

Contract Integration

For custom checkout/deposit flows:

Form & URL State

FormState


Drawer Props

For variant: 'drawer':

WidgetDrawer Ref


Exported Hooks

From @lifi/widget

From @lifi/widget-provider

From @lifi/widget-provider-ethereum

From @lifi/widget-provider-solana

From @lifi/widget-provider-bitcoin

From @lifi/widget-provider-sui

From @lifi/widget-provider-tron


Other Options