Widget
Last updated
Last updated
This guide walks you through the steps to embed the swap widget in your website in 2 minutes — whether your site is already a decentralized application (dApp) or not.
With the swap widget, your users can swap your token or any ink ERC-20 tokens on the Superswap without leaving your site!
To get started, install the widgets library using npm or Yarn.
Next, embed the React component in your application.
You can set optional parameters to tailor the appearance and functionality of the widget to fit your dApp.
width
number
480
inputToken
string
NATIVE
outputToken
string
undefiend
amount
string
undefiend
darkMode
bool
undefined
slippage
number
0.5
hideBridge
bool
undefined