Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Talla2XLC opened this issue Jul 28, 2023 · 3 comments
Open

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

Talla2XLC opened this issue Jul 28, 2023 · 3 comments

Comments

@Talla2XLC
Copy link

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
Copy link
Member

sets is single string or array of icon sets:

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

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

@Talla2XLC
Copy link
Author

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
Copy link
Member

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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants