Skip to main content

Hi everyone,

I have a Feed item component, in there I have a static header and a content placeholder (also a new component).

I want to replace that content placeholder with a new component that has DIFFERENT height (along with color and text).

Now, when I do select the placeholder and swap the components - the new component has everything except the height! The height is still higher from the original placeholder even though I set to hug content. 

Original file with all components.
​​​​​​

Here is how it looks when I swap instance:

 

Here is the video of me showing the problem: 

 

MAIN GOAL:
I just want that when I swap the placeholder, it changes to the new component (with the width, height and everything else...) 

@Ivan24 I put together an example Figma file awhile back showing how to get slots (placeholders) to work. The way I found this to work, is if I want to swap in another component to replace my slot inside of an auto-layout container (card) and have that container respond accordingly, I need to also add auto-layout to that component. Hope it helps!

Here is the original file >