Group
Compose elements and components in flex container
Import
Source
Docs
Package
Usage
Group allows you to compose any elements and components in a flex container. Use these props to change elements position inside Group:
- position controls
justify-content
property - grow
flex-grow
property, items will never wrap to next line if set totrue
- spacing controls space between elements – predefined values from
theme.spacing
or number for spacing in px - noWrap controls
flex-wrap
property and if set to true prevents elements from wrapping on next line once space on current line was exceeded - direction controls
flex-direction
: row (default) for horizontal orientation, column for vertical
Direction
Spacing
xs
sm
md
lg
xl
Group children
Group component uses className
prop to add styles,
child components must accept it otherwise unexpected negative margins will be applied the element:
Feedback
Your feedback is most valuable contribution to the project, please share how you use Mantine, what features are missing and what is done good
Leave feedback