OhVueIcon.add(FaFlag, RiZhihuFill);constapp = createApp(App); app.component("v-icon", OhVueIcon); app.mount("#app"); 局部引入 // Vue 2importOhVueIconfrom"oh-vue-icons";// or Vue 3importOhVueIconfrom"oh-vue-icons/dist/v3/icon.es";exportdefault{components: {"v-icon": OhVueIc...
importOhVueIconfrom'oh-vue-2-icons'exportdefault{components:{'v-icon':OhVueIcon}} Usage The icon names should be passed usingkebab-case. <template><v-iconname="fa-flag" /><v-iconname="ri-zhihu-fill" /></template> ForFont Awesome...
Importoh-vue-iconsand install it into Vue inmain.js. You can only import the icons you need to reduce the bundle size. Fromv1.x, this library works for both Vue 2 & 3 within a single package. Vue 3 // main.jsimport{createApp}from"vue";importAppfrom"./App.vue";import{OhVueIcon...
UNPKG oh-vue-icons/icons/index.d.ts Version: 471 BTypeScriptView Raw 1// THIS FILE IS AUTO GENERATED 2export*from"./ai"; 3export*from"./bi"; 4export*from"./ci"; 5export*from"./co"; 6export*from"./fa"; 7export*from"./fc"; ...
"patch-oh-vue-icons": "patch-package", "docs:dev": "cross-env VITEPRESS=true vitepress dev", "docs:build": "cross-env VITEPRESS=true vitepress build", "docs:build": "run-s patch-oh-vue-icons docs:build-only", "docs:build-only": "cross-env VITEPRESS=true vitepress build", "docs:...