# Figma Auto Layout

> A Figma tool that lines things up in a row or a column. The box grows to fit.

**Field:** Design  
**Category:** Design Tools  
**Also known as:** Auto Layout, Auto Layout (Figma)

## Think of it like

It is like a row of books held by bookends. Add a book, and the others slide over to make room.

## Definition

Auto Layout is a Figma feature that arranges items in a row or a column with set gaps and padding. When content changes, the frame grows or shrinks to fit. A button gets wider when its label gets longer, and a list makes room for a new item. It works much like flexbox in CSS, which makes handoff to code easier.

## Example

Leo types a longer word into a button. With Auto Layout, the button grows wider and its padding stays the same.

## Example code

```css
.button {
  display: flex;
  gap: 8px;
  padding: 12px 16px;
}
```

An Auto Layout box works much like flexbox in CSS.

## Why it matters

Designs behave like real code, so they hold up when the text or data changes.

## Common mistake

Nudging items by hand inside an Auto Layout frame. Set the gap and padding instead.

## Three principles

- **Row or column.** With set gaps.
- **Resizes to fit.** Grows with content.
- **Like flexbox.** Easy to code.

## Related terms

- [Figma](https://learn.benibix.com/term/design/figma)
- [Spacing Scale](https://learn.benibix.com/term/design/spacing-scale)
- [Design Handoff](https://learn.benibix.com/term/design/design-handoff)
- [Resizing Constraints](https://learn.benibix.com/term/design/resizing-constraints)

## Told apart from

- [Auto Layout vs Resizing Constraints](https://learn.benibix.com/compare/figma-auto-layout-vs-resizing-constraints): People think Auto Layout and resizing constraints do the same job, and they do not. Auto Layout sizes a frame from what is inside it, so a button grows when its label gets longer. Constraints work the other way. They say what a layer does when the frame around it changes size, such as staying pinned to one corner.

## Taught in

- [Auto Layout and Constraints](https://learn.benibix.com/learn/design-design-tools/auto-layout-and-constraints): Design Tools, 5/12

---

Source: https://learn.benibix.com/term/design/figma-auto-layout
Author: Behnia Zarei (a developer in Vienna, Austria, who builds and teaches data, AI and business intelligence at BENIBIX)
Publisher: BENIBIX Learn (https://learn.benibix.com/)
Last updated: 2026-11-19
Licence: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Quote freely with attribution.
