simple-icons-react-component

1.0.0 • Public • Published

Simple Icons React Component

React component for icons from SimpleIcons.org

Install

$ npm install simple-icons-react-component

or

$ yarn add simple-icons-react-component

Usage

import SimpleIcons from 'simple-icons-react-component';
 
function ReactIcon() {
  return (
    <div>
      <SimpleIcons name="React" />
    </div>
  );
}

Props

  • name(required) : The name of icons shown at SimpleIcons.org. The name has to be matched exactly and it is case-sensitive. Otherwise, it will return null.
  • color(optional) : Color of an icon. It needs to be valid for CSS color. If it is not set, it will fall back to the default color.

Package Sidebar

Install

npm i simple-icons-react-component

Weekly Downloads

16

Version

1.0.0

License

MIT

Unpacked Size

3.48 kB

Total Files

4

Last publish

Collaborators

  • cokencode