Container
⚠️
This component will become deprecated in future version of Wysteria. Please use the div element instead.
The Container component provides a simplified interface for managing layout using CSS flex properties.
API
| Prop | Type | Default | Description | 
|---|---|---|---|
| onClick | callback | Called when container is clicked | |
| direction | rowcolumnrow-reversecolumn-reverse | row | The primary axis to use when laying out children elements. Corresponds to the css property flex-direction(opens in a new tab) | 
| justify | centerstartendflex-startflex-endleftright | left | How to space children elements on the primary axis. Corresponds to the css property justify-content(opens in a new tab) | 
| align | centerstartendflex-startflex-endself-startself-end | start | How to space children elements on the secondary axis. Corresponds to the css property align-items(opens in a new tab) | 
| gap | nonexssmmdlgxlxxlxxxl | md | Spacing between each child element inside the container | 
| padding | nonexssmmdlgxlxxlxxxl | md | Padding between button border and content, and between button text and icons | 
| paddingHor | nonexssmmdlgxlxxlxxxl | md | Padding on left and right | 
| paddingVer | nonexssmmdlgxlxxlxxxl | md | Padding on top and bottom | 
| paddingTop | nonexssmmdlgxlxxlxxxl | md | Padding on top | 
| paddingRgt | nonexssmmdlgxlxxlxxxl | md | Padding on right | 
| paddingBot | nonexssmmdlgxlxxlxxxl | md | Padding on bottom | 
| paddingLft | nonexssmmdlgxlxxlxxxl | md | Padding on left | 
| children | String | The label of the button. If empty, button assumes a square aspect ratio (icon-only) | |
| style | Object | Custom css styles that are applied to the container. Uses React inline styling (opens in a new tab) |