@lifi/widget
TypeScript icon, indicating that this package has built-in type declarations

3.12.2 • Public • Published

license npm latest package npm downloads Crowdin Follow on Twitter

LI.FI Widget

GitHub_Repo_Card

LI.FI Widget is a set of prebuilt UI components that will help you integrate a secure cross-chain bridging and swapping experience that can be styled to match your web app design perfectly and helps drive your multi-chain strategy and attract new users from everywhere.

LI.FI Widget features include:

  • All ecosystems, chains, bridges, exchanges, and solvers that LI.FI supports
  • Embeddable variants - compact, wide, and drawer
  • Options to allow or deny certain chains, tokens, bridges, and exchanges
  • Pre-configured themes and lots of customization options with dark mode support so you can match the look and feel of your web app
  • Wallet management UI with the option to opt-out and use your own (Wagmi and Solana Wallet Standard support)
  • View of transactions in progress and transaction history
  • Curated wallet lists and wallet bookmarks
  • Route settings for advanced users (stored locally)
  • Complete UI translations to match your customer’s preferred language
  • Compatibility tested with React, Next.js, Vue, Nuxt.js, Svelte, Remix, Gatsby, Vite, CRA, RainbowKit

Installation

LI.FI Widget

LI.FI Widget is available as an npm package.

pnpm:

pnpm add @lifi/widget

npm:

npm install @lifi/widget

yarn:

yarn add @lifi/widget

LI.FI Wallet Management

LI.FI Wallet Management is available as an npm package.

pnpm:

pnpm add @lifi/wallet-management

npm:

npm install @lifi/wallet-management

yarn:

yarn add @lifi/wallet-management

Getting started with LI.FI Widget

Here is an example of a basic app using LI.FI Widget:

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} />
  );
};

Examples

Visit our playground to see how you can customize your LI.FI Widget experience. Additionally, see examples folder in this repository.

Documentation

Please visit LI.FI Widget Documentation.

Contributing Translations

We appreciate your interest in helping translate our project!

If you'd like to contribute translations, please visit our Crowdin project page at Crowdin LI.FI Widget. Register on Crowdin and you can start translating the project into your preferred language. Your contributions will help make our project accessible to a wider audience around the world.

Thank you for your support!

Changelog

The changelog is regularly updated to reflect what's changed in each new release.

License

This project is licensed under the terms of the Apache-2.0.

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
3.12.2
279latest
3.8.0-beta.2
2beta
3.10.1-alpha.0
2alpha

Version History

VersionDownloads (Last 7 Days)Published
3.12.2
279
3.12.1
371
3.12.0
13
3.11.0
2,144
3.10.1-alpha.0
2
3.10.0
26
3.9.0
94
3.8.2
8
3.8.1
3
3.8.0
221
3.8.0-beta.2
2
3.8.0-beta.1
2
3.8.0-beta.0
1
3.7.0-beta.12
1
3.7.0-beta.11
1
3.7.0-beta.10
1
3.7.0-beta.8
1
3.7.0
273
3.7.0-beta.7
1
3.7.0-beta.6
1
3.7.0-beta.5
1
3.7.0-beta.4
1
3.7.0-beta.3
1
3.7.0-beta.2
1
3.7.0-beta.1
1
3.7.0-beta.0
1
3.6.2
2
3.6.1
2
3.6.0
1
3.6.0-alpha.5
0
3.5.3-beta.1
1
3.5.3
2
3.5.3-beta.0
1
3.6.0-alpha.3
1
3.5.1-beta.2
1
3.6.0-alpha.2
1
3.6.0-alpha.1
1
3.6.0-alpha.0
1
3.5.2
0
3.5.1
1
3.5.1-beta.1
1
3.5.1-beta.0
1
3.5.0
1
3.4.4
123
3.4.3
1
3.4.2
1
3.4.1
1
3.4.0
1
3.4.0-beta.5
1
3.4.0-beta.4
1
3.4.0-beta.2
1
3.4.0-beta.1
1
3.4.0-beta.01
3.3.021
3.2.281
3.2.11
3.2.0374
3.1.11
3.1.01
3.0.210
3.0.11
3.0.040
3.0.0-beta.4136
3.0.0-beta.360
3.0.0-beta.21
3.0.0-beta.11
3.0.0-beta.01
3.0.0-alpha.411
3.0.0-alpha.400
3.0.0-alpha.391
3.0.0-alpha.381
2.10.2313
3.0.0-alpha.370
3.0.0-alpha.361
3.0.0-alpha.352
3.0.0-alpha.341
3.0.0-alpha.331
3.0.0-alpha.321
3.0.0-alpha.313
3.0.0-alpha.301
3.0.0-alpha.291
3.0.0-alpha.281
3.0.0-alpha.271
2.10.184
3.0.0-alpha.261
3.0.0-alpha.251
3.0.0-alpha.241
3.0.0-alpha.231
3.0.0-alpha.221
3.0.0-alpha.211
3.0.0-alpha.201
3.0.0-alpha.191
3.0.0-alpha.170
3.0.0-alpha.161
3.0.0-alpha.151
3.0.0-alpha.141
3.0.0-alpha.131
2.10.0174
3.0.0-alpha.121
3.0.0-alpha.111
3.0.0-alpha.101
3.0.0-alpha.91
2.9.51
3.0.0-alpha.81
3.0.0-alpha.71
3.0.0-alpha.61
3.0.0-alpha.51
3.0.0-alpha.41
3.0.0-alpha.31
3.0.0-alpha.21
3.0.0-alpha.11
3.0.0-alpha.01
2.9.42
2.9.31
2.9.226
2.9.11
2.9.01
2.8.15
2.8.037
2.7.11
2.7.00
2.6.31
2.6.23
2.6.11
2.6.02
2.5.11
2.5.01
2.4.61
2.4.51
2.4.41
2.4.34
2.4.21
2.4.11
2.4.01
2.3.01
2.2.82
2.2.71
2.2.62
2.2.51
2.2.41
2.2.31
2.2.21
2.2.11
2.2.01
2.2.0-beta.21
2.2.0-beta.11
2.1.41
2.2.0-beta.01
2.1.30
2.1.21
2.1.11
2.1.01
2.0.15
2.0.01
2.0.0-beta.161
2.0.0-beta.151
2.0.0-beta.141
2.0.0-beta.131
2.0.0-beta.121
2.0.0-beta.111
2.0.0-beta.101
2.0.0-beta.91
2.0.0-beta.81
2.0.0-beta.71
2.0.0-beta.61
2.0.0-beta.51
2.0.0-beta.41
2.0.0-beta.31
2.0.0-beta.22
2.0.0-beta.11
2.0.0-beta.01
2.0.0-alpha.41
2.0.0-alpha.31
2.0.0-alpha.21
2.0.0-alpha.11
2.0.0-alpha.028
1.32.89
1.32.71
1.32.61
1.32.51
1.32.41
1.32.31
1.32.21
1.32.11
1.32.01
1.31.11
1.31.01
1.30.01
1.29.61
1.29.50
1.29.41
1.29.31
1.29.21
1.29.11
1.29.01
1.28.41
1.28.31
1.28.21
1.28.11
1.28.01
1.27.21
1.27.11
1.27.01
1.26.51
1.26.41
1.26.31
1.26.21
1.26.11
1.26.01
1.25.11
1.25.01
1.24.01
1.23.11
1.23.01
1.22.11
1.22.01
1.21.01
1.20.31
1.20.21
1.20.11
1.20.01
1.19.01
1.18.91
1.18.81
1.18.71
1.18.61
1.18.51
1.18.41
1.18.31
1.18.21
1.18.11
1.18.01
1.17.21
1.17.11
1.17.01
1.16.11
1.16.01
1.15.11
1.15.02
1.14.11
1.14.01
1.13.71
1.13.61
1.13.51
1.13.41
1.13.31
1.13.21
1.13.10
1.13.01
1.12.11
1.12.01
1.11.41
1.11.31
1.11.21
1.11.11
1.11.01
1.10.41
1.10.31
1.10.21
1.10.11
1.10.01
1.9.01
1.8.11
1.8.01
1.7.01
1.6.11
1.6.01
1.5.01
1.4.01
1.2.21
1.2.11
1.2.01
1.1.31
1.1.21
1.1.11
1.1.01
1.0.11
1.0.02

Package Sidebar

Install

npm i @lifi/widget

Weekly Downloads

5,221

Version

3.12.2

License

Apache-2.0

Unpacked Size

2.62 MB

Total Files

1387

Last publish

Collaborators

  • lifi