/react-cryptocoins

Сryptocurrencies icons as React components

Primary LanguageJavaScriptMIT LicenseMIT

React Cryptocoins Icons

npm

SVG cryptocurrencies icons as React components.

Designed by allienworks

Installation

npm install react-cryptocoins --save

Usage

import { Btc } from 'react-cryptocoins';

class MyClass extends React.Component {
  render() {
    return <Btc />
  }
}

Or include icons from the compiled folder ./dist.

var Btc = require('react-cryptocoins/dist/icons/btc');

var MyComponent = React.createClass({
  render: function () {
    return (
      <Btc />
    );
  }
});

You can also include the whole icon pack:

import * as Icon from 'react-cryptocoins';

class MyClass extends React.Component {
  render() {
    return <Icon.Eth />
  }
}

Icons can be configured with inline props:

<Icon.Eth color="red" size={48} />

License

The components is available as open source under the terms of the MIT License.