react-icons-wrapper

1.0.8 • Public • Published

react-icons-wrapper

A lightweight wrapper for the react-icons library. Requires React 16.3 or higher.

NPM JavaScript Style Guide

Install

npm install --save react-icons-wrapper

Usage

Import the Icon component and pass any icon of the react-icons library as the name prop of the Icon component. A list of available icons can be found here.

import Icon from 'react-icons-wrapper'
 
const Example = () => {
  return (
    <Icon name={'FaBeer'} size={'3em'} color={'yellow'} />
  );
}

Available props:

  • name required
  • size default 1em
  • color default #000
  • className
  • style

License

MIT ©

Readme

Keywords

Package Sidebar

Install

npm i react-icons-wrapper

Weekly Downloads

5

Version

1.0.8

License

MIT

Unpacked Size

16.1 kB

Total Files

6

Last publish

Collaborators

  • beauboeynaems