🚀 Socket Launch Week Day 5:Introducing Repository Access Permissions and Custom Roles.Learn more
Sign In

crypto-token-icon

Package Overview
Dependencies
Maintainers
3
Versions
47
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

crypto-token-icon

Crypto token icon, using mui icon as base interface.

latest
Source
npmnpm
Version
0.0.50
Version published
Weekly downloads
79
9.72%
Maintainers
3
Weekly downloads
 
Created
Source

Install package

yarn add @mui/icons-material @mui/material @emotion/styled @emotion/react crypto-token-icon

Structure

crypto-token-icon ⇒ For type and common components

crypto-token-icon/tokens ⇒ Icon for crypto tokens

crypto-token-icon/systems ⇒ Icon for crypto systems

crypto-token-icon/wallets ⇒ Icon for crypto wallets

crypto-token-icon/imageUrls ⇒ Url image png of tokens

Using nomal

import { IconKeplr } from 'crypto-token-icon/wallets';

function App() {
    return (
        <>
            <IconKeplr />
        </>
    );
}
import { IconHT, IconHTX } from 'crypto-token-icon/tokens';

function App() {
    return (
        <>
            <IconHT />
            <IconHTX />
        </>
    );
}

Incase unknow token name

import { Icon } from 'crypto-token-icon';

function App() {
    return (
        <>
            <Icon tokenName={'BTC'} sx={{ fontSize: '40px' }} />
            <Icon tokenName={'other string' as any} sx={{ fontSize: '40px' }} />
        </>
    );
}

Some useful type and data support

import { TokenName } from 'crypto-token-icon';

const x: TokenName = TokenName.BTC;
import { mapNameToIcon, SvgComponent } from 'crypto-token-icon';

const x: SvgComponent = mapNameToIcon['BTC'];
import { WalletName } from 'crypto-token-icon';

WalletName.metaMask;
import { IconAndName } from 'crypto-token-icon'

<IconAndName tokenName={TokenName.BTC} />
<IconAndName tokenName={TokenName.BTC} reverse={true} />
import { PNG_AAVE_ALLMODE } from 'crypto-token-icon/imageUrls';

Prepare when dev package

prepare for vite:

yarn add @types/node vite-plugin-dts

Keywords

web3

FAQs

Package last updated on 08 May 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts