Group
The Group component provides a reusable pattern for group in the interface.
Horizontal group
The group component resets (removes) margins, and border-radius to make the apperance of horizontally stacked elements.
Vertical group
The group component resets (removes) margins, and border-radius to make the apperance of vertically stacked elements.
Justify items
Align the elements within the group as you to either position
Align items
Align the elements within the group vertcially in relation to each other.
Align items
Align the elements within the group vertcially in relation to the group. For this to have any affect, the group must have an active flex-wrap.
Flex
Changes how the container flexes its content.
Wrap
Wrap decides how the elements will move around. Lower the viewport to see how the elements behave.
Flex grow
Flex shrink
Resize the viewport to see how the elements behave
API
| Parameter | Default | Description |
|---|---|---|
|
direction
|
horizontal | What direction to group (horizontal or vertical) |
|
jusitifyContent
|
Justify the content to either position (ex. left, center, right) | |
|
alignItems
|
Alignment of the content items (ex. center) | |
|
alignContent
|
Alignment of the content (ex. end) | |
|
display
|
- | |
|
wrap
|
Wrap the content (ex. nowrap, wrap, wrap-reverse) | |
|
flexGrow
|
false | Allow to grow the content within the group |
|
flexShrink
|
true | Allow to shrink the content within the group |
|
gap
|
A number between 1-10 that sets the gap between flexed elements. | |
|
fluidGrid
|
Uses flexbox and media queries to determine amount of items per row. Can be a number between 1-4 which will determine the maximum amount of items per row. | |
|
columns
|
Number of items per row. (number between 1-12) |
CSS API
| Variable | Default | Type | Values | Description |
|---|---|---|---|---|
|
--c-group--base
|
var(--base) | range | - | Main unit that drives radius and spacing scales. |
|
--c-group--border-radius
|
var(--border-radius) | range | - | Border Radius |
|
--c-group--corner-shape
|
var(--corner-shape) | select | square, round, squircle, circular, bevel, scoop | Corner Shape |
|
--c-group--shadow-amount
|
var(--shadow-amount) | range | - | Multiplier for elevation shadows. 0 = none, 1 = default. |
|
--c-group--shadow-color
|
var(--shadow-color) | rgba | - | Shadow Color |