Open GreyXor opened 1 week ago
What are the values of link.title
and link.icon
? Did you check?
What are the values of
link.title
andlink.icon
? Did you check?
Hello, yes, link.title and link.icon have the good value", as expected it's working, and link.icon is correctly i-mdi:home. and i-mdi:home
is a working icon.
You can have a look here :
---
navigation:
title: 'i-mdi:home'
icon: 'i-mdi:home'
---
# Dashboard
But if I set the icon directly like this
<v-list nav>
<v-list-item title="Dashboard" prepend-icon="i-mdi:home" to="/" />
</v-list>
Please, try to use i-mdi-home
or mdi-home
instead.
What are the values of
link.title
andlink.icon
? Did you check?Hello, yes, link.title and link.icon have the good value", as expected it's working, and link.icon is correctly i-mdi:home. and
i-mdi:home
is a working icon. You can have a look here :--- navigation: title: 'i-mdi:home' icon: 'i-mdi:home' --- # Dashboard
But if I set the icon directly like this
<v-list nav> <v-list-item title="Dashboard" prepend-icon="i-mdi:home" to="/" /> </v-list>
Please, try to use
i-mdi-home
ormdi-home
instead.
Thank you, but it doesn't work either.
I've noticed that if (in dev) I replace :prepend-icon="link.icon"
with prepend-icon="mdi-home"
. then it works, and if I put back (still in the same dev session) :prepend-icon="link.icon"
. then it still work.
It's as if the SSR icon didn't exist because it wasn't "generated".
Is your feature request related to a problem? Please describe
I try to use icon from unocss/nuxt like my other component
![image](https://github.com/nuxt/content/assets/79602273/e45b33cc-2e12-4647-b35c-500cdbf45064)
but in nuxt-content it's not working
![image](https://github.com/nuxt/content/assets/79602273/f3010062-f4e3-4b55-a410-490d3aa40351)
Describe the solution you'd like
Icon should be showed because icon exist
Describe alternatives you've considered
Additional context