Reputation: 758
I am trying to create a custom icon using Vuetify v-icon: I follow the Docs but its doesnt work for me.
3)Now I am trying to use it in my component:
Upvotes: 2
Views: 3324
Reputation: 302
I think if you change your code in vuetify.js file it should be working fine. another trick is to always add icons after theme if you have one obviously.
Change your code to this:
import icon from "icon.vue";
export default new Vuetify({
theme,
icons: {
values: {
icon: {
component: icon,
},
},
},
});
You can also make a shortcut by doing $icon instead of $vuetify.icons.icon.
Upvotes: 1