-
-
Notifications
You must be signed in to change notification settings - Fork 623
-
-
Notifications
You must be signed in to change notification settings - Fork 623
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
use unocss preset icons as page content icon #2669
Comments
What are the values of |
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 ---
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
|
Thank you, but it doesn't work either. |
I've noticed that if (in dev) I replace |
This might related to how unocss scanner acts and detects the icon names. /cc @antfu What do you think about this issue? |
UnoCSS detects usages via the transform pipeline, where in Nuxt Content, the content doesn't go into the bundler transform processor. Thus you will need to configure UnoCSS to scan from fs explicitly: |
Is your feature request related to a problem? Please describe
I try to use icon from unocss/nuxt like my other component
but in nuxt-content it's not working
Describe the solution you'd like
Icon should be showed because icon exist
Describe alternatives you've considered
Additional context
The text was updated successfully, but these errors were encountered: