ChainIcon
A component for displaying chain logos based on chain ID.
ChainIcon
The ChainIcon component displays chain logos for Avalanche networks using a standardized path structure.
Usage
Props
Prop | Type | Default | Description |
---|---|---|---|
chain_id | number | - | Chain ID to display logo for |
className | string | - | Additional CSS classes |
Features
- Displays chain logos from a standardized path structure
- Uses common Icon component for consistent display
- Supports custom styling through className
- Simple and lightweight implementation
Examples
Basic Chain Icon
Custom Size
In a List
With Border
Asset Requirements
The component expects chain logo images to be available at:
For example:
Edit on GitHub
Last updated on