Docs for v6 usage?
danawoodman opened this issue · comments
How does one use the v6 packages from @fortawesome/fontawesome-pro
?
I don't see any docs on this and FontAwesome's own docs are terrible.
From my understanding all the docs are using the v6 imports: https://fontawesome.com/download
For v6 free packages: official packages
For v6 pro packages: official docs
How do you use the pro packages? I've attempted and they do not work:
Am I to assume that @fortawesome/pro-regular-svg-icons
are the pro icons because that is not how it is documented in the FA download docs (they're indicated as v5)
We've been doing this but according to the docs that is v5, not v6, correct?
import { faRocket } from '@fortawesome/pro-duotone-svg-icons'
This is indeed the v6 version. If you're unsure, you can check the version in the package.json file within the package.
The installation method for pro packages is the same as that of official React components. Your approach to importing them is also correct.
Ok, that was what I was being led to but FA's docs are terrible in this regard. Amazing they don't mention these packages in the v6 docs anywhere 🤦
Thanks 👍