Open in Playroom
Defines the vertical rhythm of its child elements, interleaving a uniform amount of space between each element.
  • Box For custom layouts.
The spacing between children can be adjusted using the space prop.Responsive values are supported, e.g. space={{ mobile: 'small', tablet: 'medium', desktop: 'large', wide: 'xlarge' }}
Open in Playroom
Items can be aligned horizontally using the align prop. Responsive values are supported, e.g. align={{ mobile: 'center', tablet: 'left' }}
left
center
right
Open in Playroom
By default, Stack renders a div element. You can customise this via the component prop.
<Stack component="span" space="small">
  <Placeholder height={40} />
  <Placeholder height={40} />
</Stack>