Group
Compose elements and components in a horizontal flex container
Import
Source
Docs
Package
Usage
Spacing
xs
sm
md
lg
xl
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 will not have spacing.
Group component props
Name | Type | Description |
---|---|---|
align | AlignItems | Defines align-items css property |
grow | boolean | Defines flex-grow property for each element, true -> 1, false -> 0 |
noWrap | boolean | Defined flex-wrap property |
position | "left" | "right" | "center" | "apart" | Defines justify-content property |
spacing | number | "xs" | "sm" | "md" | "lg" | "xl" | Space between elements |