Stack
Compose elements and components in a vertical flex container
Import
Source
Docs
Package
Usage
Stack
is a vertical flex container. If you need a horizontal flex container, use Group
component instead. If you need to have full control over flex container properties, use Flex component.
Gap
Browser support
Stack
uses flexbox gap to add spacing between children. In older browsers, Stack
children may not have spacing. You can install PostCSS flex-gap-polyfill to add support for older browsers.