Skip to content

Integrations

Vuetify supports custom icon sets using Vue icon libraries. This section is about how to integrate the following icon libraries with vuetify-nuxt-module:

Please refer to the Vuetify documentation for more information about custom icon sets, all the examples in this page using a custom icon set implementation.

Once the custom icon set is implemented, you need to configure vuetify-nuxt-module to use it:

  • add icons.defaultSet = 'custom' in your vuetify.config.ts file or in the vuetifyOptions object in your nuxt.config.ts file
  • register the custom icon set in the Vuetify options via a new Nuxt plugin using the vuetify:before-create hook
  • register the custom icon component in the Vue application via previous Nuxt plugin using vuetify:ready hook: this step is optional, only required if you want to use the custom icon component in your application

If you want to use another icon set library, you should change the corresponding icon set implementation in the examples below: unplugin-icons, Iconify Vue and Nuxt Icon using material design icons from Iconify icons.

You can also use multiple icon sets, check multiple-icon-sets and Vuetify documentation.

unplugin-icons/nuxt

You can check this repository using material design icons, using unplugin-icons/nuxt Nuxt module:

You can run this repo in Stackblitz, check the README file.

WARNING

Not all icons have been included, you will need to review the unplugin-icons/index.ts file including the icons you want to use.

Iconify for Vue

You can check this repository using material design icons:

You can run this repo in Stackblitz, check the README file.

WARNING

Not all icons have been included, you will need to review the iconify/index.ts file including the icons you want to use.

Iconify for Vue is client side only, the icons will be rendered only on the client (you will see the icons loaded once the component requests them to the Iconify API). If you're using SSR in your Nuxt application, you maybe have hydration mismatch warnings.

Iconify Icon Web Component

You can check this repository using material design icons:

You can run this repo in Stackblitz, check the README file.

WARNING

Not all icons have been included, you will need to review the iconify/index.ts file including the icons you want to use.

Iconify Icon Web Component is client side only, the icons will be rendered in the ShadowDOM (you will see the icons loaded once the component requests them to the Iconify API).

Nuxt Icon

You can check this repository using material design icons:

You can run this repo in Stackblitz, check the README file.

Vue Phosphor Icons

You can check this repository:

You can run this repo in Stackblitz, check the README file.

WARNING

Not all icons have been included, you will need to review the phosphor/index.ts file including the icons you want to use.

Released under the MIT License.