rctui-icon

0.1.1 • Public • Published

Icon

react ui icon component

support font-awesome or material-design-iconic-font

Install

npm install rctui-icon

Usage

import Icon from 'rctui-icon'
 
// default prefix is 'icon', use setPrefix set another value
Icon.setPrefix('fa') 
    
<Icon
  icon="string"     // icon name without prefix
  spin={bool}       // default false
  size={int|string} // [lg|2x|3x|4x|5x]
  style={object}
/>

Package Sidebar

Install

npm i rctui-icon

Weekly Downloads

1

Version

0.1.1

License

MIT

Last publish

Collaborators

  • lobos