Skip to main content
Question

Slot not preserving nested content & layout across states

  • April 2, 2026
  • 1 reply
  • 60 views

Luiza_Ramos

I’m currently testing the Slots feature and ran into an issue with how content and layout behave across states.

In my setup, I’m using an internal element slot that is shared across multiple states (default, error, and hover). I’ve added additional content inside the slot (multiple lines), and everything works as expected in the base state.

However, in the instance, when switching to the hover state, the slot does not preserve the injected content. Instead, it resets to the default version of that state (e.g., a single line), ignoring the extra items I previously added.

Additionally, I’m using this component nested inside another component that also contains a slot. In this scenario:

  • The issue persists across nested slots
  • The container inside the slot does not properly adapt to the content
  • I have to manually adjust layout properties in each instance

Expected behavior:

  • Slots should preserve all injected content across states
  • Layout (including container sizing) should adapt consistently without manual overrides
  • Nested slots should behave predictably and inherit content correctly

I’ve attached a video demonstrating the issue.

1 reply

adamsmasher
Figmate
  • Figmate
  • April 7, 2026

Hi ​@Luiza_Ramos,

Thanks so much for your post and for including a video. ‘

I want to make sure I understand the issue correctly; you have a layer with a slot in it, and within that slot you included components that have their own slot. The parent component, however, is shortening its height while hovering in a preview rather than showing all the components like the default state. Is that correct? Does the parent have auto-layout turned on, along with the height option set to “hug”? I noticed in the video that the “Query builder | Condition row...” layer did not, so I’m wondering if if turning that on resolve the hover state issue.

You also mentioned that you needed to manually adjust instances. What kind of changes did you need to manually adjust?