Skip to main content
Question

Instance variants not preserving slot content

  • April 9, 2026
  • 0 replies
  • 22 views

Norman

I have a modal component with different sizes as variants and wanted to integrate slots to their content areas so instances don’t need to be detached. I converted the content area to a slot for all the size variants and even renamed the slot layer to be the same for all variants.

When using an instance of that component, then changing slot contents and then switching to a different size variant, all the content gets reset to component defaults.

What is strange, is that when I copy/paste the slot area inside the component to the different variants, then instances are preserving the content, although the structure is exactly the same in both cases.

Unfortunately the copy/paste hack is not an option for me, since it will reset all my existing instances in the prototype and it would take too many hours to go over all of them.

Please make it so instance variants retain slot content, when the component structure is the same.


Edit: It seems that I was using slots wrong. I was creating slots through keyboard shortcut and did not know that it was creating multiple slot properties onto the component. That was the reason why they were not synced.