Skip to main content
Adrián Padilla
New Member
February 3, 2026
Question

Text inside slots not resizing correctly

  • February 3, 2026
  • 2 replies
  • 510 views

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
February 21, 2026

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

Johnbravo
New Member
February 22, 2026

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.