ficon-fela
TypeScript icon, indicating that this package has built-in type declarations

0.3.0 • Public • Published

react-styled-components

Use fontawesome5 free or pro with styled-components the easy way. ficon provider for fela.

import FiconProvider from 'ficon-fela';
import { FaFontAwesome } from 'ficon';

const MyComponent = () => (
  <FiconProvider>
    <div>
      <span style={{ fontSize: 14 }}>
        I can adapt to fontSize! <FaFontAwesome color="black" />
      </span>
      <span>
        I can use your themes color (using theme.color)! <FaFontAwesome color />
      </span>
      <span>
        I can use your any of your themes properties!{' '}
        <FaFontAwesome color="secondary" />
      </span>
      <span>
        I can use any other valid color too! <FaFontAwesome color="red" />I can
        use any other valid color too! <FaFontAwesome color="#666" />
      </span>
    </div>
  </FiconProvider>
);

Readme

Keywords

none

Package Sidebar

Install

npm i ficon-fela

Weekly Downloads

1

Version

0.3.0

License

MIT

Unpacked Size

18 kB

Total Files

14

Last publish

Collaborators

  • bkniffler