Learn how to integrate LiquidSwap widgets into your website
| Parameter | Type | Default | Description |
|---|---|---|---|
| theme | string | auto | Theme: "light", "dark", or "auto" |
| primaryColor | string | #3b82f6 | Primary color (hex format) |
| backgroundColor | string | - | Background color (hex format) |
| borderRadius | number | 12 | Border radius in pixels |
| showLogo | boolean | true | Show LiquidSwap logo |
| showWalletButton | boolean | false | Show wallet button in header |
| showPoweredBy | boolean | true | Show "Powered by" footer |
| width | number | 480 | Widget width in pixels |
| height | number | auto | Widget height in pixels |
<iframe
src="https://liqd.ag/widget?theme=dark&primaryColor=%23f59e0b"
width="480"
height="600"
frameborder="0"
title="LiquidSwap Widget">
</iframe><iframe
src="https://liqd.ag/widget?showLogo=false&showPoweredBy=false"
width="480"
height="500"
frameborder="0"
title="LiquidSwap Widget">
</iframe><iframe
src="https://liqd.ag/widget?primaryColor=%23ef4444&borderRadius=20&width=400"
width="400"
height="600"
frameborder="0"
style="border: 2px solid #ef4444; border-radius: 20px;"
title="LiquidSwap Widget">
</iframe>The widget automatically handles wallet connection. When users haven't connected a wallet, the main action button will show "Connect Wallet" instead of swap-related text.
<iframe
src="https://liqd.ag/widget?showWalletButton=true"
width="480"
height="600"
frameborder="0">
</iframe>