Dashboard Mode - Why Auto Layout creates responsive designs
Goal
Understand how Auto Layout in Figma helps create responsive designs that adjust automatically to different screen sizes.
Understand how Auto Layout in Figma helps create responsive designs that adjust automatically to different screen sizes.
| Component | Width (px) | Height (px) | Behavior |
|---|---|---|---|
| Button | 120 | 40 | Fixed width and height |
| Text Label | Auto width | 20 | Expands with text |
| Container | Auto width | Auto height | Resizes with children |
| Icon | 24 | 24 | Fixed size |
| Spacing | Auto | Auto | Flexible gap |
+---------------------------------------+ | Responsive Container (Auto Layout) | | +----------------+ +--------------+ | | | Icon (24x24) | | KPI Card 1 | | | | Fixed size | | Button + Text| | | +----------------+ +--------------+ | | +----------------+ +--------------+ | | | Icon (24x24) | | KPI Card 2 | | | | Fixed size | | Button + Text| | | +----------------+ +--------------+ | +---------------------------------------+
When the text inside the KPI Card changes, the Auto Layout container resizes automatically. The spacing between elements remains consistent at 10px. The fixed-size icon stays the same but moves position to keep alignment. This responsiveness means the design adapts smoothly to different content lengths or screen sizes without manual resizing.
If you increase the text length inside the KPI Card, which components resize or move? Answer: The KPI Card container and the Responsive Container resize automatically, the spacing remains consistent, and the fixed Icon moves position but does not resize.