-
Notifications
You must be signed in to change notification settings - Fork 609
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
[Avatar] Support NuxtImg #1577
[Avatar] Support NuxtImg #1577
Comments
Hi @maximepvrt , Thanks for this. However, since this is an external module and not related to Nuxt UI, documentation will be left as is 😄 . |
@moshetanzer It's still a shame not to be able to use @nuxt/Image for the avatar component, for example. Google PageSpeed advises me to use it, but I can't. It could be an option to enable. |
Aha. Interesting we do use img in avatar @benjamincanac thoughts? |
Oh didn't think about the |
I've added an <script setup>
const NuxtImg = resolveComponent('NuxtImg')
</script>
<template>
<UAvatar :as="NuxtImg" src="https://avatars.githubusercontent.com/u/739984?v=4" />
</template> |
This is so helpful. Can you include it in the documentation @benjamincanac ? |
We could activate it automatically with this #1289 (comment) |
Description
Currently all images element are
<img>
and it's possible to replace all with<NuxtImg>
(@nuxt/image)Additional context
No response
The text was updated successfully, but these errors were encountered: