How to use Auto layout in Figma
In Figma (verified 2026-10-24), select a frame or a group of objects and click Auto layout in the right sidebar (shortcut Shift+A). Set direction (horizontal/vertical), gap, and padding, then resize the parent — children reflow instead of overlapping.
Nest Auto layout frames for cards and toolbars. Use Hug vs Fill on width/height so text and buttons grow the right way.
Applies to Figma Design in the browser and desktop app with edit access. View-only seats can inspect Auto layout but cannot add it. Team libraries can publish Auto layout components.
Build a reflowing UI frame
Add Auto layout
- Select a frame (or objects you want to wrap).
- Press Shift+A or click + next to Auto layout in the right panel.
- Confirm the blue Auto layout badge appears on the frame.
Tune spacing
- Set direction: vertical for stacks, horizontal for toolbars.
- Adjust gap between items and padding inside the frame.
- Align items (start / center / space between) as needed.
Hug, fill, and nest
- On a child, set width/height to Hug contents or Fill container.
- Nest another Auto layout frame inside for complex cards.
- Resize the parent to verify wrapping and alignment hold.
Our take: Auto layout before pixel nudging
If you are hand-aligning every button 8px apart, switch to Auto layout. One gap value beats twenty manual moves when copy changes.
If it fails
- Shift+A does nothing: check edit access / you selected a component instance you cannot restructure.
- Children overlap: direction or absolute positioning overrides — clear absolute where unintended.
- Frame will not shrink: a child is set to Fill or has a min size.
- Need wrapping: enable wrap on the Auto layout frame when your Figma version supports it.
Frequently asked questions
What is Figma Auto layout?
A frame property that stacks children with consistent gap and padding so the layout reflows when content or size changes.
How do I add Auto layout in Figma?
Select a frame or objects and press Shift+A, or use Auto layout in the right sidebar.
Hug vs Fill in Auto layout?
Hug sizes to content; Fill expands to use available space in the parent.
Can Auto layout nest?
Yes — nest Auto layout frames for cards, lists and responsive sections.
Does Auto layout work inside components?
Yes — many design-system components are Auto layout frames with variants for states.