oh-vue-icons
oh-vue-icons copied to clipboard
Icons do not appear on the page
In my project with Vite, Vue3/Composition API and Typescript the icons do not appear on the page. Do I need some svg loader?
hey i have the same problem (javascript), did you already find any solution?
hey i have the same problem (javascript), did you already find any solution?
Yep. I did it this way. In my components I did local import:
import { OhVueIcon as Vicon, addIcons } from "oh-vue-icons"
import { FaFlag } from "oh-vue-icons/icons"
addIcons(FaFlag)
And in the templates, just instantiate the icons you imported.
<template>
<Vicon name="fa-flag" />
</template>
This way it worked for me.