vuetifyjs / nuxt-module

Zero-config Nuxt Module for Vuetify
https://nuxt.vuetifyjs.com/
MIT License
212 stars 22 forks source link

Can`t add Custom Icons into Vuetify config icons.sets #72

Open Talla2XLC opened 1 year ago

Talla2XLC commented 1 year ago
sets: {
  mdi,
  custom
}

sets not iterable durung app building

Can you please provide an example of including custom icons in playground? Thanks in advance

userquin commented 1 year ago

sets is single string or array of icon sets:

sets?: IconFontName | IconFontName[] | FontIconSet[];

https://vuetify-nuxt-module.netlify.app/guide/icons/

Talla2XLC commented 1 year ago

sets is single string or array of icon sets:

sets?: IconFontName | IconFontName[] | FontIconSet[];

https://vuetify-nuxt-module.netlify.app/guide/icons/

Typescript show warnings if insert custom icons. That's why I'm asking an example... just to understand if I do something wrong

userquin commented 1 year ago

If you're adding custom icons you need to add them using a Nuxt plugin, check https://vuetify-nuxt-module.netlify.app/guide/#nuxt-plugin-hooks (broken link to icons) and https://vuetify-nuxt-module.netlify.app/guide/icons/unocss-preset-icons.html#adding-a-new-vuetify-icon-set (the example is using UnoCSS Preset Icons but you can add your custom icons there)