FortAwesome / react-fontawesome

Font Awesome React component
https://fontawesome.com
MIT License
3.67k stars 262 forks source link

How to use Kits with react-fontawesome #535

Open rob-at-airwalk opened 1 year ago

rob-at-airwalk commented 1 year ago

I want to use a consistent way of defining icons within my app. some of those icons have been uploaded to a kit so will have the prefix 'fak'

how can I import these in the same way as normal i.e.

import { library } from '@fortawesome/fontawesome-svg-core'
import { fab } from '@fortawesome/free-brands-svg-icons'
import { fak } from '@fortawesome/something_to_deal_with_kits'
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'

library.add(fab,fak)

-----

<FontAwesomeIcon icon={['fak', 'myuploadedicon']}  />
ShaharIlany commented 1 year ago

I Would also like to see it soon in the next versions