I am working on nuxt 3 with element plus UI. I want to use the custom menu icon on element plus menu item <el-menu-item>
I have tried to import tried to import svg icon from asset folder but it didn't work
Currently
<el-menu-item index="/"><el-icon><Setting /></el-icon>Setting</el-menu-item>
What I want
<el-menu-item index="/"><el-icon><MySettingIcon /></el-icon>Setting</el-menu-item>
Try sth like this:
by importing your component:
Or you can use svg icon directly:
EDIT
Here is sample MySettingIcon.vue component:
You can put this into src/icons folder.