Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature Request: Compatible with dynamically generated icons. #7

Open
AnderUstarroz opened this issue Jun 24, 2021 · 0 comments
Open

Comments

@AnderUstarroz
Copy link

Doesn't seems to work with dynamically generated icons (icons fetched from some API)
For instance the following component would display icons dynamically:

import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'


const Icon = ({group, icon}) => {
  return <FontAwesomeIcon icon={[group, icon]} />
}

export default Icon

Is there a way to achieve this without having to import statically the icons in advance?

import {
  faCoffee,
  faAddressBook,
  faAirFreshener,
  faAmbulance,
  faAtom,
  faBus,
  faCoins,
  faDice,
} from '@fortawesome/free-solid-svg-icons'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant