danawoodman / react-fontawesome

A React Font Awesome component.
https://www.npmjs.com/package/react-fontawesome
MIT License
667 stars 72 forks source link

Stacked Icons #36

Closed chrisdebug closed 7 years ago

chrisdebug commented 7 years ago

How do you do stacked icons?

danawoodman commented 7 years ago

@chrisdebug right now you have to wrap your icons in a span like:

<span className='fa-stack fa-lg'>
  <FA name='square-o' stack='2x' />
  <FA name='twitter' stack='1x' />
</span>

I added an example to the examples directory to demonstrate this: https://github.com/danawoodman/react-fontawesome/blob/master/examples/index.js#L11

I'm welcome to a PR that exports a wrapper component for this if you're looking for something to do 😉

chrisdebug commented 7 years ago

Thanks @danawoodman! I'm pretty busy but if I get any time, I might.