Using the Material 3 community library I created custom components using autolayout and the vertical or horizontal spacing. The community library allows you to turn a card or sheet into slot that will accept a local component. The problem I have is that if say I have 24px vertical spacing between items in an autolayout that spacing disappears once the component is inserted into a slot. Is this normal behaviour? I’m managing to work around this by adding padding to the items inside the layout but this is not ideal.
Hard to say what the issue is without seeing the exact components structure, however it sounds like you just have an auto layout spacing override, when swapping the instance.
I thought that too but I can’t see where - you can try it yourself using the material 3 community library and a card component… Just turn it into a slot in the properties sidebar and insert your own custom autolayout component. Put some spacing between the item (arrange the component vertically. When you then insert the component into the slot it loses it vertical spacing.
Most likely the slot component in the card has spacing overrides so when you swap with your local Figma preserve these overrides on your instance
Reply
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.