-
-
Notifications
You must be signed in to change notification settings - Fork 144
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
Auto-import based on prop binding pattern #203
Comments
@TechAkayy you can use the You should also file an issue on vuetify: the prepend slot (and maybe also the append slot) will not add the additional |
@TechAkayy you can use |
Ohh woww.. thanks bunch @userquin :-) Much appreciated. Unocss is new to me, going to explore it tonight! |
there is no way to infer the icons, check this entry there is no way to infer a component from a dynamic string |
|
Unocss icons preset is an amazing combo for vuetify :-) I think I will leave unplugin-icons behind for now. Thanks a lot for suggesting it.. https://stackblitz.com/github/techakayy/vuetify3-beta-unocss-icons |
Added feature request in vuetify - vuetifyjs/vuetify#15164 |
Thanks for this amazing plugin. I'm using auto-import via unplugin-components, unicons (prefix is 'uil') iconset in the below example (https://stackblitz.com/github/techakayy/vuetify3-beta-unplugin-icons?file=src%2FApp.vue).
So, basically,
<i-uil-android>
will auto-import just fine as it uses the{prefix}-{collection}-{icon}
tag pattern.But, if I'm binding the icon as a prop (
uilShoppingCart
in the below example), then looks like I need to manually import the icon.Is it possible to support auto-import based on prop-binding pattern as well, for example
{prefix}{Collection}{Icon}
(camelCase equivalent)?The text was updated successfully, but these errors were encountered: