Internal ID software / Layout
Grid
The nine-column grid, with cells that span thirds or the split four and five.
Not drawn in Figma: built only from the tokens, for internal ID software. In code: components/software/layout.tsx. From the old system: Grid in @id-identity-as/ui/layout (twelve columns, now nine).
Example
span 3
span 3
span 3
span 4
span 5
span 6
span 3
span 3
span 3
span 3
span 4
span 5
span 6
span 3
import { Grid, GridItem } from '@/components/software/layout';
<Grid gap="inline-4">
<GridItem span={6}>...</GridItem>
<GridItem span={3}>...</GridItem>
</Grid>Props
| Prop | Type | Default | What it does |
|---|---|---|---|
gap | Space | 'none' | On Grid: the space between the cells. The web grid has no gutter, so the default is none. |
span | 3 | 4 | 5 | 6 | 9 | 9 | On GridItem: how many of the nine columns the cell takes from a tablet up. On a phone every cell is the full width. |
as | ElementType | 'div' | On both: the element to render. |
Do
- Span counts that divide nine: 3, 6 and 9, or the split 4 and 5.
- Use the seam as the gap between tiles of one block.
Do not
- Do not span 2, 7 or 8 columns. The grid has no such cell.
- Do not bring the old twelve-column grid along. It is nine now.
Accessibility
- The order in the code is the reading order. Do not reorder cells with CSS.
Tokens it uses
- grid.columns
- space.inline.4
- space.seam