Grid
Fixed-column equal-width native grid layout that flows children neatly left-to-right across rows — ideal for 7-column calendars, KPI tiles, and launcher pads.
Signature#
SIGNATURE
<Grid
columns={2}
rowSpacing={8}
columnSpacing={8}
>
<Box>1</Box>
<Box>2</Box>
<Box>3</Box>
<Box>4</Box>
</Grid>
Grid · columns={2}
1
2
3
4
Props#
Inherits all StyleProps:
columnsnumberDefault 2- Fixed number of equal-width columns (e.g.
7for calendars,2for 2×2 metric tiles). rowSpacingnumberOptional- Vertical spacing between rows in points.
columnSpacingnumberOptional- Horizontal spacing between columns in points.
Example: 2×2 System KPI Tiles#
TSX
<Grid
columns={2}
rowSpacing={8}
columnSpacing={8}
>
<Tile label="CPU" value="24%" />
<Tile label="RAM" value="61%" />
<Tile label="SSD" value="48%" />
<Tile label="BAT" value="92%" />
</Grid>
2×2 KPI Tiles
CPU24%
RAM61%
SSD48%
BAT92%