Skip to content

Auto import of customized component name #439

Description

@bjarnef

I have customized component name in nuxt.config.ts as mentioned here:
https://nuxt.com/modules/icon

icon: {
    componentName: 'NuxtIcon'
},

However use of component doesn't seem to register auto import of the component:

<NuxtIcon name="lucide:newspaper" />
"@iconify-json/lucide": "^1.2.71",
"@nuxt/icon": "^2.1.0",
"nuxt": "^3.12.1",
"vue": "^3.3.8",

I already have another custom component Icon used for something else.

Anything else I neeed to configure or can I explicit import the component?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions