How to import an image to use in a Component? #13875
-
I am using And this is my
But in my component I get a broken image link, This is my component:
I am confused too because in the docs it seems to indicate static files/images are supported outta the box...
I've tried as they recommend:
And the funny thing I am not getting a Any help would be appreciated! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Assuming your project structure is like this:
then you would reference it like: <Image src="/static/uploads/profile-avatars/placeholder.jpg" alt="user-avatar" /> In your last example you were missing |
Beta Was this translation helpful? Give feedback.
Assuming your project structure is like this:
then you would reference it like:
In your last example you were missing
/static/
before your image source.