Customization
π§© Configuration Overview
import type { WheelxWidgetConfig } from '@wheelx/widget'const widgetConfig: WheelxWidgetConfig = {
mode: 'bridge-and-swap',
referralCode: 'your-affiliate-code',
networks: {
from: [1, 8453],
to: [8453, 137]
},
defaultTokens: {
from: {
chainId: 8453,
address: '0xfde4C96c8593536E31F229EA8f37b2ADa2699bb2',
symbol: 'USDT'
},
to: {
chainId: 8453,
address: '0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913',
symbol: 'USDC'
}
},
allowedTokens: {
from: [
{
chainId: 8453,
tokens: ['0xfde4C96c8593536E31F229EA8f37b2ADa2699bb2']
}
]
},
styles: {
formContainer: {
backgroundColor: '#0f172a'
}
}
}π mode
modeπΈ referralCode
referralCodeπ networks
networksπͺ defaultTokens
defaultTokensπ allowedTokens
allowedTokensποΈ styles
stylesStyle Areas
Example: Branded Dark Theme
Last updated
Was this helpful?