Skip to main content
Adrián Padilla
New Member
Feb 3, 2026 4:03 PM UTC
Question

Text inside slots not resizing correctly

I’m trying the new Slots feature provided by figma.
I created a slot with auto-layout in a component and set default text inside (width=fill, height=hug)
The issue happens when I instance this component and resize it to other width, the text inside that slot not resizes well, instead it has fixed properties in the height.

Correct resizing by default:


Problem when resizing the component:

 

This topic has been closed for replies.

2 replies

Christian Muntean
New Participant
Feb 21, 2026 11:43 PM UTC

(Sorry, misunderstood the problem and can’t delete my comment for whatever reason)

Johnbravo
New Member
Feb 22, 2026 1:25 AM UTC

In Figma Slots with auto-layout, text set to width=fill and height=hug won’t resize properly when the parent component’s width changes, because height hug fixes the text’s height. To fix this, try using height=fill, adjust auto-layout settings, or let the parent control resizing. Slots can behave unintuitively, so careful setup is needed.