Comments (2)
Duplicate #1577.
You can already do this using the as
prop of the Avatar
component:
<script setup>
const NuxtImg = resolveComponent('NuxtImg')
</script>
<template>
<UAvatar src="https://github.com/benjamincanac.png" :as="NuxtImg" />
</template>
from ui.
@benjamincanac
My apologies if it seemed as a duplicate, my suggestion was more so meant for automatic detection and usage of NuxtImg, not just plain capability (hence why I suggested integration as opposed to support). It would be a nice DX improvement in my opinion as it would simplify pages with a lot of avatars/other image elements.
from ui.
Related Issues (20)
- How to span columns in UTable?
- Nested popover causing to expand with vcalendar
- UTable: Expand Slot causes EmptyState width issue HOT 2
- LandingFAQ component in Pro ignores the "slot" property of an item HOT 1
- How to Open a `uiMenu` in `UInputMenu` on Focus HOT 1
- Allow using tab item key as value for v-model
- Passing additional logic to the `expand` function
- UTable doesn't trigger @select when clicking the checkbox
- UTable can support single selection
- UInput, USelect, and UTextarea supports an autocomplete value as optional prop HOT 1
- How to apply background color transition to VerticalNavigation buttons ? HOT 2
- Active vertical navigation link without using the "to" prop for each link HOT 2
- Vertical Navbar Dropdown Feature Request HOT 1
- Icons do not work locally HOT 19
- Is there a specific reason why the events of nuxt-ui components are not documented? HOT 1
- UCarousel arrows
- Date picker broken
- Button with props to and disabled
- useModal example docs missing TypeScript defineEmits usage
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ui.