Cweili / svelte-fa

Tiny FontAwesome component for Svelte
https://cweili.github.io/svelte-fa/
MIT License
398 stars 24 forks source link

Docs for v6 usage? #300

Closed danawoodman closed 1 year ago

danawoodman commented 1 year ago

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

Cweili commented 1 year ago

For v6 free packages: official packages For v6 pro packages: official docs

danawoodman commented 1 year ago

How do you use the pro packages? I've attempted and they do not work:

image

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)

image

We've been doing this but according to the docs that is v5, not v6, correct?

import { faRocket } from '@fortawesome/pro-duotone-svg-icons'
Cweili commented 1 year ago

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.

danawoodman commented 1 year ago

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 👍