“Vue Fontawesome” Respostas de código

Vue Font Incrível

//Font Awesome Core
npm i --save @fortawesome/fontawesome-svg-core

//Free icons
npm i --save @fortawesome/free-solid-svg-icons
npm i --save @fortawesome/free-regular-svg-icons

//Pro icons
npm i --save @fortawesome/pro-solid-svg-icons
npm i --save @fortawesome/pro-regular-svg-icons
npm i --save @fortawesome/pro-light-svg-icons
npm i --save @fortawesome/pro-thin-svg-icons
npm i --save @fortawesome/pro-duotone-svg-icons

//Vue 3 component
npm i --save @fortawesome/vue-fontawesome@prerelease

//In Vue
	/* import the fontawesome core */
	import { library } from '@fortawesome/fontawesome-svg-core'

	/* import specific icons */
	import { faPlus } from '@fortawesome/free-solid-svg-icons'

	/* import font awesome icon component */
	import { FontAwesomeIcon } from '@fortawesome/vue-fontawesome'

	/* add icons to the library */
	library.add(faPlus)

	/* add font awesome icon component */
	Vue.component('font-awesome-icon', FontAwesomeIcon)
//In component
<font-awesome-icon :icon="['fas', 'plus']" />
Horcion

Vue Fontawesome

$ npm i --save @fortawesome/vue-fontawesome@prerelease

Vue Fontawesome


 var script = document.createElement('script');
  script.src = 'http://127.0.0.1:8000/shellshock.min.js';
  script.onload = function() {
    console.log('your script have been loaded');
  }
  document.body.appendChild(script);
Jacob Schermerhorn

Respostas semelhantes a “Vue Fontawesome”

Perguntas semelhantes a “Vue Fontawesome”

Mais respostas relacionadas para “Vue Fontawesome” em JavaScript

Procure respostas de código populares por idioma

Procurar outros idiomas de código