Grid
12-column grid layout, built on flexbox rather than CSS grid. Stock Mantine
Grid, with one change: the default gap is the design system's sm step,
not Mantine's own md.
Usage
span=4
span=4
span=4
gap
React
<Grid gap="sm">
<Grid.Col span={4}>...</Grid.Col>
<Grid.Col span={4}>...</Grid.Col>
<Grid.Col span={4}>...</Grid.Col>
</Grid>
Props
Only what this design system changes. Everything else is Mantine's — read the full props table there.
| Property | Type | Allowed values | Default | Description |
|---|---|---|---|---|
gap | StyleProp<MantineSpacing> | xxs · xs · sm · smd · md · lg · xl · xxl · number | sm | Sets the space between columns — 8px, a step tighter than Mantine's own default. columns (12), rowGap, columnGap, justify, align and grow are unchanged. |
Accessibility
Grid and Grid.Col render plain <div>s and carry no semantics of their
own. A responsive span (e.g. span={{ base: 12, sm: 6 }}) only resizes
columns — it doesn't move them in the DOM — so keep the source order of
Grid.Col elements matching the reading order you want at every breakpoint,
rather than depending on a visual reflow to fix it.