Figma Support Forum

Replacing an image within a component


Is there a way to replace an image within an instance of a component? I have a master component of a modal window with a placeholder for an image, but I’m not sure how to replace that placeholder with the image I want. Pasting or dragging the new image in the layers panel doesn’t work.

You need to upload the image as a fill.

Thanks, the image I’m trying replace is actually an icon created in Figma, so technically it’s a group of shapes. Is there a different way to do this?

In this case you shouldn’t use images (since the object isn’t even an image). Use components: Figma Tutorial: Components - Swapping and States - YouTube