Dashboard Mode - Alignment within Auto Layout
Dashboard Goal
Understand how to align elements inside an Auto Layout frame in Figma to create clean, organized BI dashboards.
Understand how to align elements inside an Auto Layout frame in Figma to create clean, organized BI dashboards.
| Region | Sales | Profit |
|---|---|---|
| North | 100 | 30 |
| South | 150 | 50 |
| East | 200 | 70 |
| West | 130 | 40 |
| Central | 170 | 60 |
Alignment Settings Used:
- Horizontal alignment: center for KPI cards, stretch for chart and table.
- Vertical alignment: center for KPI cards, stretch for chart and table.
- Spacing between items: 16px.
- Padding inside Auto Layout frame: 24px.
+--------------------------------------------------+ | Auto Layout Frame | | +----------------+ +----------------+ | | | Total Sales | | Total Profit | | | | (Center) | | (Center) | | | +----------------+ +----------------+ | | | | +--------------------------------------------+ | | | Bar Chart - Sales by Region | | | | (Stretch width) | | | +--------------------------------------------+ | | | | +--------------------------------------------+ | | | Table - Detailed Data | | | | (Stretch width & height) | | | +--------------------------------------------+ | +--------------------------------------------------+
Filters like Region selector update the Bar Chart and Table components dynamically. KPI cards recalculate totals based on filtered data. Alignment remains consistent as Auto Layout adjusts spacing and sizing automatically.
Add a filter for Region = 'East'. Which components update?
alignment property control?alignItems to control vertical alignment in vertical layouts.alignItems: 'center' is the correct property-value pair to center items vertically.alignItems: 'start', where will the child items be aligned vertically?alignItems controls vertical alignment of children.alignItems: 'start'justifyContent: 'center', but items are still aligned at the top. What is the likely mistake?justifyContent controls vertical distribution of items.direction: 'horizontal'.justifyContent: 'space-between' spaces buttons evenly horizontally, and alignItems: 'center' centers them vertically.direction: 'horizontal', justifyContent: 'space-between', alignItems: 'center' [OK]Pass the test and this pattern moves unknown