📦Install Widget

Easy installation to go multi-chain

To get started, install the latest version of LI.FI Widget.

yarn add @lifi/widget

Compatibility

List of environments, libraries and frameworks we've tested the widget with so far:

See the compatibility pages for more information.

Check out our complete examples in the widget repository or file an issue if you have any incompatibilities.

Basic example

Here is a basic example using LI.FI Widget with container customization.

As an integrator, you can monetize your LI.FI SDK integration and collect fees. Please see Monetization / Take Fees for more information.

import { LiFiWidget, WidgetConfig } from '@lifi/widget';

const widgetConfig: WidgetConfig = {
  theme: {
    container: {
      border: '1px solid rgb(234, 234, 234)',
      borderRadius: '16px',
    },
  },
};

export const WidgetPage = () => {
  return (
    <LiFiWidget integrator="Your dApp/company name" config={widgetConfig} />
  );
};
🎮Select Widget Variants

Last updated

Was this helpful?


#375: Widget/SDK v3

Change request updated