Skip to main content

Stack

Vertical flex layout. Stock Mantine Stack, with one change: the default gap is the design system's sm step, not Mantine's own md.

Base
Mantine + override
Mantine
Import
{ Stack } from '@mantine/core'
Source
src/themes/theme.ts

Usage​

Rad 1
Rad 2
Rad 3
gap
React
<Stack gap="sm">
{/* ... */}
</Stack>

Props​

Only what this design system changes. Everything else is Mantine's — read the full props table there.

PropertyTypeAllowed valuesDefaultDescription
gapMantineSpacingxxs · xs · sm · smd · md · lg · xl · xxl · numbersmSets the space between children — 8px, a step tighter than Mantine's own default. align and justify are unchanged, still stretch and flex-start.

Accessibility​

Stack renders a plain <div> and carries no semantics of its own. Its only job is spacing, so the elements placed inside it are what need labels, headings and roles — and their DOM order should already match the reading order the stacking produces.