nuxt / icon

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

Color attribute is not longer working in 1.0.0 #176

Open Rednas83 opened 1 week ago

Rednas83 commented 1 week ago

<Icon name="uil:github" color="red" /> returns image App.config.ts

// https://github.com/nuxt-modules/icon#configuration-%EF%B8%8F
export default defineAppConfig({
  icon: {
    size: "300%", // default <Icon> size applied
    class: "icon", // default <Icon> class applied
    mode: "css", // svg || css
    aliases: {
      nuxt: "logos:nuxt-icon",
    },
  },
})
antfu commented 1 week ago

Use style="color:red" instead.