How to use the @fortawesome/vue-fontawesome.FontAwesomeIcon function in @fortawesome/vue-fontawesome

To help you get started, we’ve selected a few @fortawesome/vue-fontawesome 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 MixinNetwork / desktop-app / src / main.ts View on Github external
import { API_URL } from '@/utils/constants'
import './assets'

const fontawesome = require('@fortawesome/vue-fontawesome')
library.add(faArrowLeft, faArrowRight, faChevronDown, faSearch, faPaperPlane)

Vue.use(VueAxios, axios)
Vue.use(Dialog)
Vue.use(Menu)
Vue.use(Toast)
Vue.use(ImageViewer)
Vue.use(Scrollbar)

Vue.axios.defaults.baseURL = API_URL.HTTP
Vue.axios.defaults.headers.post['Content-Type'] = 'application/json'
Vue.component('font-awesome-icon', fontawesome.FontAwesomeIcon)
Vue.config.productionTip = false
Vue.prototype.$blaze = blaze
moment.locale(navigator.language)
Vue.prototype.$moment = moment
Vue.prototype.$electron = electron

new Vue({
  i18n,
  router,
  store,
  render: h => h(App)
}).$mount('#app')

@fortawesome/vue-fontawesome

Official Vue component for Font Awesome 6

MIT
Latest version published 2 months ago

Package Health Score

92 / 100
Full package analysis

Similar packages