On this page
How wrap works in auto layout
With wrap on, auto layout pushes any child that doesn't fit onto the next line. Once it's on, you get two gap fields: one between items in a row and one between rows. Wrap is part of the Horizontal flow only. Vertical flow doesn't offer it, and the Grid flow places items in fixed cells and doesn't wrap at all.
Fix 1: switch the frame to Horizontal
Select the auto layout frame and pick the Horizontal direction in the right sidebar, then turn on wrap. If you were using Grid, decide which you need: Grid gives you rows and columns with spans, wrap gives you a row that reflows as it fills. See auto layout grid for the Grid flow.
Fix 2: give Fill container children a min width
This is the fix from the Figma forum thread on the wrap feature. A child set to Fill container grows or shrinks to fill whatever space is left in the row. Because it can always shrink, the row never overflows, and nothing wraps. Open the child's Width dropdown, choose Add min width, and type the smallest size it should reach. When the row can't fit that width any more, the child moves to the next line.
This is the usual setup for responsive card grids: every card on Fill container with a min width, and the parent on wrap.
Fix 3: check the parent's width
Wrapping happens when items run out of room in the parent's width. If the parent is set to Hug contents, it can grow to fit every child in one row, so nothing ever overflows. Setting the parent to a fixed width, or to Fill container inside its own parent, gives the row a limit to wrap against. Figma's help center doesn't spell this rule out, so treat it as a tip and test it on your frame. The sizing modes are explained in Fill container vs Hug contents.
Frequently asked questions
How do I wrap items in Figma auto layout?
Select the auto layout frame, set the direction to Horizontal, and turn on wrap. You then get separate gaps between items and between rows.
Why don't my Fill container items wrap?
A Fill container child takes the rest of the row and shrinks as needed, so it never overflows. Add a min width from the child's Width dropdown and it will wrap once the row can't fit it.
Can I use wrap with vertical auto layout?
No. Wrap is only offered with the Horizontal flow. For a layout with fixed rows and columns, use the Grid flow instead, which doesn't wrap but lets items span cells.
More in Auto layout & frames
- How to Use Absolute Position and Z-Index in Figma Auto LayoutAbsolute position in Figma is Ignore auto layout. How to free one child to overlap others, change z-index with canvas stacking, and why you can't move a layer.
- Fill Container vs Hug Contents in Figma: Why Is One Missing?Fill container only shows on children of an auto layout frame, and Hug only on auto layout frames. How Fixed, Hug and Fill work, plus min and max width fixes.
- How to Use Auto Layout in FigmaHow to use Figma auto layout: add it with Shift+A, pick a flow, then set gap, padding, alignment and resizing. Plus fixes for extra space and missing options.
- Frame vs Group in Figma: Which Should You Use?Figma frame vs group: groups take the size of their children, frames have their own size, clip content and auto layout. Shortcuts to group, frame and unframe.
- How to Use the Grid Flow in Figma Auto LayoutFigma's auto layout Grid flow puts children into rows and columns. How to set it up, size tracks, span cells, and how it differs from layout guides.
- What Is the Figma Auto Layout Shortcut?The Figma auto layout shortcut is Shift+A on Mac and Windows. Here are the keys to remove and suggest auto layout, plus what to do for Ignore auto layout.
- Why Are Constraints Not Showing in Figma?Constraints in Figma not showing? In UI3 they sit in the Position section, and only for layers inside a plain frame. Here's why they vanish and how to fix it.
- How to Make Figma Less Laggy and FasterFigma slow or laggy? Each file gets 2GB of memory. Check the memory meter, find heavy layers, and cut hidden layers, variants, big images and extra pages.
- How to install Figma pluginsFigma plugins don't need installing: open one from the Community or run it inside a file. Steps for Figma Design, Dev Mode, FigJam, Slides, saving and admins.
