icon icon indicating copy to clipboard operation
icon copied to clipboard

Setting custom Component Name doesn't do anything.

Open ZackPlauche opened this issue 1 year ago • 1 comments

          > Oh it's
export default defineNuxtConfig({
  modules: [
    'nuxt-icon',
  ],
  icon: {
    componentName: 'NuxtIcon',
  },
})

Hi, so I just tried this but it still only appears when using <Icon name="..." /> :|

Config:

// https://nuxt.com/docs/api/configuration/nuxt-config
export default defineNuxtConfig({
  devtools: { enabled: true },
  modules: [
    "@nuxtjs/tailwindcss",
    "@storyblok/nuxt",
    "nuxt-icon",
  ],
  icon: {
    componentName: 'NuxtIcon',
  },
})

Originally posted by @ZackPlauche in https://github.com/nuxt/icon/issues/174#issuecomment-2192184553

ZackPlauche avatar Jun 29 '24 07:06 ZackPlauche

@ZackPlauche Would you be able to provide a simple repro for this with StackBlitz or something similar? icon.componentName is working for me in my limited testing.

danjrwalsh avatar Jul 08 '24 02:07 danjrwalsh

We temporarily closed this due to the lack of enough information. We could not identify whether it was a bug or a userland misconfiguration with the given info. Please provide a minimal reproduction to reopen the issue. Thanks.

Why reproduction is required

antfu avatar Jul 15 '24 15:07 antfu

@ZackPlauche Would you be able to provide a simple repro for this with StackBlitz or something similar? icon.componentName is working for me in my limited testing.

Hi sorry for late reply. I've personally never gotten StackBlitz to work so I wouldn't know how to set something up there 😅

ZackPlauche avatar Jul 23 '24 22:07 ZackPlauche

Update: It turns out I was using the old nuxt-icon instead of the new @nuxt/icon

ZackPlauche avatar Jul 23 '24 22:07 ZackPlauche