Skip to main content
Question

Slot layout break when switching variant - very annoying bug

  • August 4, 2026
  • 2 replies
  • 9 views

Mattéo Gonzalez

Hello,

I thought Slots was the feature we had all been waiting for. Unfortunately, I just found out it's not. As soon as I started using it, it created major issues in my design system and essentially broke all of my responsive components that rely on variants to switch between desktop and mobile layouts. The problem is that it's now too late for me because I've already migrated everything to Slots.

For example, I have a Bento component with two variants: Desktop and Mobile. Both variants share the same Slot property. Naturally, the layout inside the Bento needs to be different for each device to be truly responsive, while the content and overall structure remain exactly the same.

However, if I edit a single layer inside the Slot in the Desktop variant and then switch to the Mobile variant, it overrides the mobile layout and breaks everything, even though the structure is 100% identical.

I'm experiencing this issue with every component that uses Slots.

At first, I thought I might need two separate Slot properties, one for each layout, so the layout would remain independent while the content stayed synchronized. But that seems to defeat the purpose of Slots.

Is there a way to achieve this without breaking the layouts? Am I missing something, or is this a current limitation of Slots?

Thanks!

 

 

2 replies

Mattéo Gonzalez

It destroyed all components of my design system. It’s kinda urgent...


Jaycee Lewis
Figmate

Hi, ​@Mattéo Gonzalez 👋 Thanks for the details. This is expected behavior rather than a bug: variant swapping relies on a shared layer hierarchy. Modifying a slot's contents intentionally severs that link. So on swap, nothing inside the slot gets remapped. Identical structure doesn't help, because the connection is gone once the slot is edited.

Quick test to confirm: duplicate one broken instance, select the slot > More actions > Reset slot, then switch variants. The per-device layout should come back. It's the slot override breaking the link.

Your instinct to separate layout from content is right. The adjustment is that your slot is probably wrapping too much:

If you'd like more help, I can open a support ticket for you. Talk soon! – Jaycee