Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Custom collections for icons dosen't work with dynamic name #1886

Closed
miladhp opened this issue Jun 16, 2024 · 1 comment · Fixed by #1789
Closed

Custom collections for icons dosen't work with dynamic name #1886

miladhp opened this issue Jun 16, 2024 · 1 comment · Fixed by #1789
Labels
bug Something isn't working

Comments

@miladhp
Copy link
Contributor

miladhp commented Jun 16, 2024

Environment

"@nuxt/ui": "^2.17.0",
"nuxt": "^3.12.1"

Version

v2.17.0

Reproduction

https://stackblitz.com/edit/nuxt-ui-6spaw7?file=package.json,app.vue,components%2FMyComp.vue

Description

I added my icon collections based on documentation. and I have to pass the icon collection prefix through a prop and the icon name through iterable data from an API call. But it doesn't work.

Additional context

No response

Logs

No response

@miladhp miladhp added the bug Something isn't working label Jun 16, 2024
Copy link
Member

When using the dynamic prop, it uses nuxt-icon under the hood so you need to specify your custom collections in your app.config.ts: https://github.com/nuxt-modules/icon?tab=readme-ov-file#custom-local-collections

This will be way easier when we'll migrate from @egoist/tailwindcss-icons to the next major of nuxt-icon!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants