Package Exports
- nimbus-universal-swap
- nimbus-universal-swap/package.json
- nimbus-universal-swap/skeleton
Readme
Nimbus Universal Swap Widget
Supported chains:
- EVM
- TON
- SUI
- SOL
- ECLIPSE
Installation
Nimbus Universal Swap Widget
Nimbus Universal Swap Widget is available as an npm package. Inspired by LiFi widget
npm:
npm install nimbus-universal-swap
yarn:
yarn add nimbus-universal-swap
Getting started with Nimbus Widget
Here is an example of a basic app using Nimbus Widget:
import { NimbusSwapWidget, WidgetConfig } from 'nimbus-universal-swap';
const widgetConfig: WidgetConfig = {
theme: {
container: {
border: '1px solid rgb(234, 234, 234)',
borderRadius: '16px',
},
},
};
export const WidgetPage = () => {
return (
<NimbusSwapWidget
integrator="Your dApp/company name"
config={widgetConfig}
/>
);
};
Examples
See examples folder in this repository.
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.