Search
Star
Feedback
Setup for Free
© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
Img src through props. - Nuxt
N
Nuxt
•
14mo ago
•
3 replies
psyCOSMO
Img src through props.
Following the docs you can use a relative src for the image tag as the following
,
~/assets/img/example.png
~/assets/img/example.png
which then nuxt knows that it
's a file that it should import in the build step
, how can you add support for this kind of image importing in props
?
Nuxt
Join
Nuxt Community Chat Server
31,788
Members
View on Discord
Resources
ModelContextProtocol
ModelContextProtocol
MCP Server
Recent Announcements
Similar Threads
Was this page helpful?
Yes
No
Similar Threads
/& prepended to src in img tag
N
Nuxt / ❓・help
2y ago
How to use SRC property in <img>?
N
Nuxt / ❓・help
15mo ago
<img src> is working but when i bind it :src it's not working
N
Nuxt / ❓・help
2y ago
srcDir: "src/"
N
Nuxt / ❓・help
15mo ago