Group
A layout component that groups multiple elements together with consistent spacing, alignment, or styling.
A layout component that groups multiple elements together with consistent spacing, alignment, or styling.
Basic usage example to quickly see how the Group
works.
Interactive configurator to explore customization options for the Group
component.
Styles API | Type | Default | Annotation |
---|---|---|---|
unstyled? | boolean | false | if true , all default styles will be removed |
gap? | string | number | 12 | Key of CSS gap values, numbers are converted to rem |
wrap? | CSSProperties["flexWrap"] | wrap | Controls flex-wrap CSS property |
align? | CSSProperties["alignItems"] | stretch | Controls align-items CSS property |
justify? | CSSProperties["justifyContent"] | center | Controls justify-content CSS property |
Props API | Type | Default | Annotation |
---|---|---|---|
grow? | boolean | false | Determines whether each child element should have flex-grow: 1 style |
preventGrowOverflow? | boolean | true | Determines whether children should take only dedicated amount of space (max-width style is set based on the number of children) |
Full working code example, including necessary markup and styles. You can copy and paste this code directly to start using the component immediately.