New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

react-crypto-icons

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-crypto-icons

A simple React component that can display 600 crypto icons

latest
Source
npmnpm
Version
1.0.5
Version published
Weekly downloads
221
-22.46%
Maintainers
1
Weekly downloads
 
Created
Source

React Crypto Icons

A simple React component that can display 600 crypto icons

Build Status

React Crypto Icons provides a simple icon component that can display crypto logos

Dependencies

This library requires the following packages to be installed:

  • react v17.0.2+
  • react-dom v17.0.2+

Installation

React Crypto Icons requires Node.js v12+ to run.

Install React Crypto Icons from npm

npm install react-crypto-icons

Or with yarn

yarn add react-crypto-icons

Icons

This project supports nearly 600 (okay 594) SVG icons taken from the cryptocurrency-icons project. You can check out the supported icons here!

Usage

All icon names should be lowercase to avoid capitalization mismatching. To ensure consistant icon sizing, you MUST specify a size for each icon.

import React from "react";
import Icon from "react-crypto-icons";

function App() {
    return (
        <div className="App">
            <Icon name="btc" size={25} />
        </div>
    );
}

export default App;

Pretty much all there is to it :)

Development

We love contributions 'round these parts!

React Crypto Icons is written in TypeScript and will be tested using jest. Make sure all new features are tested before creating PR.

If you are into making SVGs, head over to the cryptocurrency-icons project. I am sure they would love the extra iconage.

Build:

npm run build

Run tests:

npm run test

License

MIT

Free Software, Yee Haw!

[icons] http://cryptoicons.co

Keywords

react

FAQs

Package last updated on 23 Jul 2021

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