# Grid

The nine-column grid, with cells that span thirds or the split four and five.

Group: Layout. Code: `components/software/layout.tsx`. From the old system: Grid in @id-identity-as/ui/layout (twelve columns, now nine). Live: https://design.id-hub.dk/software/grid

```tsx
import { Grid, GridItem } from '@/components/software/layout';

<Grid gap="inline-4">
  <GridItem span={6}>...</GridItem>
  <GridItem span={3}>...</GridItem>
</Grid>
```

| 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

---

Not drawn in Figma. Kasper decided on 20 November 2026 that internal software gets this set now, built only from the tokens. The look is ours until Peter draws it, and every open choice is a question in docs/SPOERGSMAAL-TIL-PETER.md. The public site, campaigns and brand surfaces use only the components drawn in Figma.

The rules for this set and all 33 components: https://design.id-hub.dk/software.md. Token values: https://design.id-hub.dk/tokens.md.

Index of everything, as text: https://design.id-hub.dk/llms.txt. Never invent a colour, a size, a component or a product fact: if it is not here, it does not exist yet.
