MultiChainTokenInput
A token selection component that supports tokens across multiple chains.
MultiChainTokenInput
The MultiChainTokenInput component provides a token selection interface that allows users to select tokens from different chains.
Usage
Props
| Prop | Type | Default | Description | 
|---|---|---|---|
| selected | { address: string, chain_id: number } & Partial<TokenItem> | - | Currently selected token with chain | 
| list | TokenItem[] | - | Array of tokens across all chains | 
| onSelectionChanged | (token: TokenItem) => void | - | Called when token selection changes | 
| showBalances | boolean | - | Whether to show token balances | 
| className | string | - | Additional CSS classes | 
Features
- Token selection across multiple chains
- Chain selection interface
- Displays token with chain icon
- Shows token balances (optional)
- Searchable token list per chain
- Responsive dialog design
Examples
Basic Multi-Chain Selection
With Balances
In a Cross-Chain Form
Custom Styling
Component Structure
- 
Trigger - TokenChip with chain icon
- Chevron down indicator
- Click to open dialog
 
- 
Dialog - Header with back button
- Chain selection row
- Search input
- Chain-specific token list
- Token balances (if enabled)
 
Chain Selection
The component automatically extracts unique chain IDs from the token list and displays them as selectable options:
Is this guide helpful?