How to use the @fortawesome/free-solid-svg-icons.faUserAstronaut function in @fortawesome/free-solid-svg-icons

To help you get started, we’ve selected a few @fortawesome/free-solid-svg-icons examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github bcgov / devhub-app-web / app-web / src / utils / fontAwesomeLibrary.js View on Github external
import ReactDOM from 'react-dom'; // eslint-disable-line
import { library } from '@fortawesome/fontawesome-svg-core';
import * as Icons from '@fortawesome/free-solid-svg-icons';
import * as Brands from '@fortawesome/fontawesome-free-brands';

const iconsToUse = [
  Icons.faBook,
  Icons.faShippingFast,
  Icons.faCoffee,
  Icons.faUserAstronaut,
  Icons.faChevronRight,
  Brands.faGithub,
];
// eslint-disable-next-line
export default library.add.apply(library, iconsToUse);