Skip to main content

Should empty slots be ignored from Auto Layout?

  • March 11, 2026
  • 2 replies
  • 35 views

Juuso_Kantonen

I’m trying to recreate the structure of our Text Field web component with slots. I would prefer the Figma slots to behave similar to the <slot> element in that they wouldn’t reserve space until there is content in them.

Currently I can work around this by adding a boolean property that controls visibility of each slot but this adds clutter to the property controls.

In the properties panel slot contents are described as “Default” or “Modified”. Having a third state “Empty” that also hides the slot from Auto Layout would solve both for me.

 

2 replies

  • Figmate
  • March 12, 2026

Hi ​@Juuso_Kantonen

 

Thanks for your feedback on Slots! I’ll be sure to pass this along to our team.

We also really appreciate you sharing your current workaround using a boolean property. I’m sure it will be helpful to other community members facing the same challenge.


Vincent_Schlothauer

This is a pain we’ve been feeling for a while, since unfortunately empty auto layouts also don’t collapse. It would be nice if slots could do a little better.