TokenIcon
A component for displaying token logos.
TokenIcon
The TokenIcon component displays token logos based on the token's chain ID and contract address.
Usage
Props
Prop | Type | Default | Description |
---|---|---|---|
chain_id | number | - | Chain ID of the token |
address | string | - | Token contract address |
className | string | - | Additional CSS classes |
Features
- Displays token logos from a standardized path structure
- Supports custom styling through className
- Uses common Icon component for consistent display
- Follows
/tokens/logo/{chain_id}/{address}.png
path convention
Examples
Basic Token Icon
Custom Size
In a List
With Border
Asset Requirements
The component expects token logo images to be available at:
For example: