“Vue Fontawesome” Code-Antworten

Vue -Schriftart fantastisch

//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

Ähnliche Antworten wie “Vue Fontawesome”

Fragen ähnlich wie “Vue Fontawesome”

Weitere verwandte Antworten zu “Vue Fontawesome” auf JavaScript

Durchsuchen Sie beliebte Code-Antworten nach Sprache

Durchsuchen Sie andere Codesprachen