nuxt / icon

The <Icon> component, supporting Iconify, Emojis and custom components.
https://stackblitz.com/edit/nuxt-icon-playground?file=app.vue
MIT License
930 stars 52 forks source link

Feature: Add `class` option to `nuxtIcon` config #38

Closed iRaziul closed 1 year ago

iRaziul commented 1 year ago

Adds an option to change the default class of the <Icon /> component or remove it entirely.

To remove the class entirely:

// app.config.ts
export default defineAppConfig({
  nuxtIcon: {
    class: '', // default .icon class is removed
})

Resolves #24