nuxt / icon

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

Feature Request - support for i-mdi-home "unocss" format #84

Closed TechAkayy closed 11 months ago

TechAkayy commented 1 year ago

Nuxt-Icon currently follows mdi:home which is iconify format.

Nuxtlabs/ui follows i-mdi-home which is unocss format.

Icones, unocss support using multiple formats. image

Would be great to have support to use unocss format in Nuxt-Icon in addition to the current iconify format, so that it can be used when working on other libraries which uses the "unocss" format.

Atinux commented 1 year ago

We actually use @iconify/vue to load the icon with the name: https://github.com/nuxt-modules/icon/blob/022d563466c6782159a8295714536ed98a1e563a/src/runtime/Icon.vue#L53

It does support mdi:home and mdi-home so I guess we can add a way to remove i- prefix to support unocss format.