How to use the @fortawesome/free-solid-svg-icons.faGraduationCap 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 hvpaiva / aspdotnet-vuejs / content / ClientApp / icons.js View on Github external
import { library } from '@fortawesome/fontawesome-svg-core';
// Official documentation available at: https://github.com/FortAwesome/vue-fontawesome
import { FontAwesomeIcon } from '@fortawesome/vue-fontawesome';

// If not present, it won't be visible within the application. Considering that you
// don't want all the icons for no reason. This is a good way to avoid importing too many
// unnecessary things.
library.add(
	require('@fortawesome/free-solid-svg-icons').faGraduationCap,
	require('@fortawesome/free-solid-svg-icons').faList,
	require('@fortawesome/free-solid-svg-icons').faSpinner,
	require('@fortawesome/free-solid-svg-icons').faHome,
	// Brands
	require('@fortawesome/free-brands-svg-icons').faMicrosoft,
	require('@fortawesome/free-brands-svg-icons').faVuejs,
	require('@fortawesome/free-brands-svg-icons').faFontAwesome
);

export {
	FontAwesomeIcon
}