Group
Compose elements and components in a horizontal flex container
Source
Docs
Package
Usage
Group is a horizontal flex container. If you need a vertical flex container, use Stack
component instead. If you need to have full control over flex container properties, use Flex component.
preventGrowOverflow
preventGrowOverflow prop allows you to control how Group children should behave when there is not enough
space to fit them all on one line. By default, children are not allowed to take more space than
(1 / children.length) * 100% of parent width (preventGrowOverflow is set to true). To change
this behavior, set preventGrowOverflow to false and children will be allowed to grow and take
as much space as they need.
Group children
!important Group works correctly only with React elements.
Strings, numbers, fragments may have incorrect styles if grow prop is set:
Browser support
Group uses flexbox gap to add spacing between children. In older browsers, Group children may not have spacing. You can install PostCSS flex-gap-polyfill to add support for older browsers.