Library Comparison
How react-web3-icons compares to other Web3 / cryptocurrency icon libraries.
Overview
Several libraries provide cryptocurrency and Web3 icons. They differ in scope, API design, and maintenance status:
- →react-web3-icons covers more than tokens (chains, wallets, DEXs, DeFi, bridges, oracles, explorers and more), draws every logo from the brand's official assets and records the source, and pairs each colored icon with a mono variant. It ships TypeScript-first named exports, per-category subpaths, dynamic loaders and chain ID maps.
- →@web3icons/react offers a much larger catalogue (2,500+ icons, most of them tokens), token lookup by contract address, a raw SVG package for non-React consumers, and a Figma plugin. It is the most downloaded library of the four.
- →cryptocurrency-icons (spothq) is a framework-agnostic SVG/PNG asset pack with ~500 coins, but is no longer actively maintained and provides no React components.
- →@ledgerhq/crypto-icons is a Ledger-ecosystem React component that fetches icons from their CDN at runtime with multi-tier fallback. Downloads are primarily driven by internal Ledger projects.
Bundle Size
This library ships one ES module per icon, so a bundler that tree-shakes keeps only the icons you import by name. The numbers below are minified and brotli-compressed sizes, with React excluded, for a handful of representative import patterns.
| Import | Brotli |
|---|---|
| Single icon (Ethereum) | ~0.7 KB |
| Full coin category (/coin) | ~74 KB |
| Full chain category (/chain) | ~40 KB |
| Dynamic loader (/dynamic), no code splitting | ~143 KB |
| Entire library | ~163 KB |
Measured with pnpm run size (size-limit) on the 5.0.0 ESM build; 1 KB = 1,000 bytes. With code splitting, /dynamic is a small loader plus one chunk per icon rendered. Single-icon size varies by path complexity.
API Comparison
Each library takes a different approach to exposing icons:
react-web3-icons
// Named import — fully tree-shakeable
import { Ethereum, BitcoinCircle } from 'react-web3-icons';
// or from a category subpath (tree-shakes the same):
import { Ethereum } from 'react-web3-icons/chain';
<Ethereum size={32} />
<BitcoinCircle className="text-orange-500" size={48} />
// Dynamic loading by slug — no static import needed
import { ChainIcon } from 'react-web3-icons/dynamic';
<ChainIcon name="ethereum" size={32} />
// Chain ID → component name
import { CHAIN_ID_TO_NAME } from 'react-web3-icons/meta';
const name = CHAIN_ID_TO_NAME[1]; // "Ethereum"@web3icons/react
// Named import with variant prop
import { IconEthereum } from '@web3icons/react';
<IconEthereum size={32} variant="branded" />
<IconEthereum size={32} variant="mono" />
<IconEthereum size={32} variant="background" />cryptocurrency-icons
// Asset-only — no React components, just file paths
import ethSvg from 'cryptocurrency-icons/svg/color/eth.svg';
import btcPng from 'cryptocurrency-icons/128/color/btc.png';
<img src={ethSvg} alt="Ethereum" width={32} height={32} />@ledgerhq/crypto-icons
// Single dynamic component — fetches from Ledger CDN
import { CryptoIcon } from '@ledgerhq/crypto-icons';
<CryptoIcon ledgerId="ethereum" size={32} />
// Falls back to CoinGecko mapping, then letter iconKey differences: react-web3-icons uses separate exported names for each variant (Ethereum vs EthereumMono), enabling per-variant tree-shaking. @web3icons/react uses a single component with a variant prop. cryptocurrency-icons provides raw files only. @ledgerhq/crypto-icons loads icons at runtime from a CDN.
Feature Matrix
| Feature | react-web3-icons | @web3icons/react | cryptocurrency-icons | @ledgerhq/crypto-icons | Note |
|---|---|---|---|---|---|
| React components | cryptocurrency-icons is asset-only | ||||
| Tree-shakeable | |||||
| TypeScript types | |||||
| Colored variant | |||||
| Mono variant | |||||
| Background variant | Circle and Square containers (EthereumCircle, PhantomSquareMono) | ||||
| Dynamic loading | web3icons: TokenIcon / NetworkIcon (client-only); Ledger fetches from its CDN at runtime | ||||
| Chain ID metadata | react-web3-icons/meta and <ChainIcon chainId={…} />; web3icons: chainId in its network metadata | ||||
| Token lookup by contract address | react-web3-icons looks coins up by ticker | ||||
| Recorded source for every logo | — | — | — | Each icon page links the official brand asset it was drawn from | |
| JSDoc IDE hints | |||||
| Category subpath imports | /chain, /coin, /wallet, … | ||||
| Raw SVG files | react-web3-icons/svg/<category>/<Name>.svg | ||||
| React Server Components | Icons call no hook other than useId, which Server Components support; Ledger renders through a runtime hook | ||||
| Iconify collection | iconify.json (web3) + iconify-mono.json (web3-mono); competitors: token, cryptocurrency | ||||
| Icon metadata catalog | react-web3-icons/manifest (+ manifest.json); @web3icons/common, manifest.json | ||||
| Figma plugin | |||||
| Actively maintained | cryptocurrency-icons is no longer maintained | ||||
| React Native support | @ledgerhq/crypto-icons-ui | ||||
| Icon count | 310 (888 exports) | 2,500+ | ~500 | CDN-based |
Sources: @web3icons/react, cryptocurrency-icons, @ledgerhq/crypto-icons. See npm trends for live download stats. Last reviewed on 2026-10-24.