Auto layout
Stack layers in rows, columns or a grid that grow with their content.
Early access
With auto layout, a frame places its layers for you: one after another in a row or a column, with the same gap between them and padding around them. Add a task to a list and the list grows; make a label longer and its button widens.
Add auto layout
Select a frame. For loose layers that aren't in a frame yet, select them and use Wrap in auto layout in the arrange menu instead.
Press Shift A, or choose Add auto layout next to Layout in the Design panel.
Pick a Flow: Vertical layout, Horizontal layout or Grid layout. Wrap layout lets a row break onto the next line when it runs out of room.
Set the Gap between items, and the padding around them. If Gap reads Auto, pick a number from its menu to set it yourself. Individual padding sets each side on its own.
To take it off again, choose Remove auto layout, or press Shift A once more.
Line things up
- Alignment is a 3×3 grid: click where the items should sit in the frame.
- Auto gap spreads the items out so the space between them fills the frame.
- Clip content hides whatever spills over the frame's edge.
How big things are
Each layer in an auto layout frame, and the frame itself, has a width and a height that's one of:
| Setting | What it does |
|---|---|
| Fixed | Stays the size you set |
| Hug | Shrinks or grows to fit what's inside |
| Fill | Takes up the room left in its parent |
A task row, for example, is Fill across and Hug down: as wide as the list, and as tall as its text. Add min and max widths or heights so things stop growing or shrinking at a sensible size.
Grids
Grid layout places items in columns and rows. Use Add column and Add row to build the grid. For guides on top of a frame without moving anything, add a Layout guide instead.
Text direction
Direction (Auto, LTR or RTL) sets which way content flows. Use RTL for right-to-left languages.
Next: Components and variants.
Was this page helpful?