Auto Layout in Figma: What It Is and How to Use It
This article is your complete guide to Auto Layout. By the end, you'll stop fearing it and start seeing it as a tool you can't work without.

Auto Layout is both a tool for grouping objects and a powerful system that controls padding, spacing, alignment, and how elements behave when their content changes. Designers used to align elements by hand, nudge dozens of layers after changing the text in a button, and spend hours adapting layouts to different screens. Auto Layout changed the game. Let's dive in and see how to work with it!
The Foundation: Core Auto Layout Properties
To start using the magic of Auto Layout, you need to understand its basic settings. They appear in the right sidebar as soon as you apply Auto Layout to an object or a group of objects.

The Auto Layout settings panel in Figma
To create an Auto Layout, select one or more layers and press Shift + A. Or right-click and choose “Add auto layout.”
Creating an Auto Layout in Figma
Still, I recommend creating Auto Layout with the keyboard shortcut—it's much faster. The selected elements are instantly wrapped in a special frame.
Now let's go over its key properties:
- Direction: Sets how elements are arranged inside the frame: vertically (a column), horizontally (a row), or in a grid (currently in beta). This is the property that determines where a new object gets added.

Auto Layout direction in Figma
- Spacing: The distance between elements inside Auto Layout. Change one value and all the objects shift evenly, staying in perfect order.

Spacing between Auto Layout elements in Figma
- Padding: The space inside the container—the distance from the frame's edges to its content. You can set the same padding on all sides or adjust each side separately.

Padding inside Auto Layout in Figma
- Alignment: Determines how elements are positioned inside the frame when there's free space around them. For example, centered, left-aligned, or in the top right corner.

Auto Layout alignment in Figma
To lock this in, let's do a little practice. Open Figma and follow along step by step:
- Create a text layer (for example, “Download”) and an icon.
Creating a text layer and an icon in Figma
- Select both objects and press Shift + A.
Creating an Auto Layout for a button in Figma
- In the Auto Layout panel, set Spacing to, say, 8px to move the icon away from the text.
Changing the spacing between the text and the icon inside Auto Layout
- Set the horizontal and vertical Padding—for example, 16px and 8px respectively.
Setting the padding inside a button in Figma
- Add a fill to the frame.
Adding a fill to an Auto Layout in Figma
- Done! Now, if you change the text, the button automatically adjusts to its length while keeping all the padding.
A responsive button in Figma
What Is Responsiveness? And How to Control Resizing
This is the heart of Auto Layout and the key to creating responsive designs. Every element inside an Auto Layout frame (and the frame itself) has settings for how it behaves when resized.

The Auto Layout Resizing panel in Figma
- Hug Contents: The container's size is determined by the size of its content. The button from the example above uses exactly this property: it “hugs” the text and icon, taking the padding you set into account.
- Fill Container: The element stretches to fill all the available space in its parent (outer) frame, horizontally or vertically. This property is indispensable when you need one element (say, an input field in a form) to take up the full width while another (a button) stays fixed.
- Fixed Size: You set the element's width or height to a hard value. It won't shrink or stretch. This is useful for avatars, icons, or logos that should always keep their proportions.
Let's jump into Figma and put it all into practice:
- Assemble the components: an image (Fixed), a title (Fill), a description (Fill), and a button (Hug).

Card components
- Group the title and description into a vertical Auto Layout (Shift + A). Set Spacing to 12px.
Creating an Auto Layout for the title and description
- Select this group, the image, and the button, and apply a vertical Auto Layout again. Set Spacing to 20px. Set Padding to 20px on all sides. And add a fill to the whole card.
Creating a card in Figma
- Now the most important part: for the text blocks and the button, go to the Resizing settings and choose Fill Container horizontally.
Applying Fill to the text
- Try changing the width of the whole card. You'll see the text wrap neatly and, together with the button, take up all the space available to it. The layout no longer “breaks.”
A responsive card in Figma
Advanced Techniques and Pro Tips
Nesting
This is when one Auto Layout frame is placed inside another. That's how almost every complex interface is built: a site header (a horizontal Auto Layout with a logo, a menu, and a user block) or a profile card (a vertical Auto Layout with a horizontal one nested inside it, holding the name and an “online” status).

Nesting in Auto Layout in Figma. Source: Figma
Min and Max Sizes
These are additional settings you can use alongside the main resizing types. They limit an element's minimum and maximum width or height.
For example, take a button set to Hug Contents but with a minimum width of 120px. Even if the text is short, the button won't get any smaller than 120px. Maximum values work exactly the same way.
Minimum and maximum values in Auto Layout. Source: Figma
Absolute Positioning (Ignore Auto Layout)
Sometimes you need to place an element on top of an Auto Layout, ignoring its rules (for example, an “X” close icon in the corner of a modal or a “New” badge on a product card). For this, Figma has absolute positioning, which “pulls” the object out of the Auto Layout flow.
Absolute positioning in Auto Layout. Source: Figma
Wrap
This feature lets elements that don't fit on one line automatically move to the next. It's perfect for tag grids, photo galleries, or filters in an online store. You'll find it in the Auto Layout settings by clicking the three dots.
Let's see how Wrap works in practice:
- Create several tag components using Auto Layout (text + background).
Creating tags in Figma
- Combine several tags into a single Auto Layout.
Creating an Auto Layout for the tags
- In this frame's settings, choose Wrap.
Applying Wrap to the tags
- Set the vertical and horizontal Spacing inside the Auto Layout.
Spacing between tags
- Now stretch or shrink the frame—the tags will form new rows on their own, just like text in a paragraph.
A responsive tag list in Figma
Auto Layout isn't just a feature—it's the foundation of design in Figma, and you won't get far without it. Yes, it may seem complicated at first, but put in a little practice and you won't be able to imagine working without it.
It's your key to speeding up your workflow many times over, building consistent, predictable layouts, and, most importantly, creating truly responsive designs that look great on any device.
To dig deeper into Auto Layout, I recommend watching the lessons in the free Figmaster course, where we cover this Figma functionality in detail.
.jpg&w=3840&q=75)
%2520-%2520hover.jpg&w=3840&q=75)



