Box
The Box component is a container for other components.
Props:
Properties | Description | Required? | Default |
---|---|---|---|
alignItems |
Aligns content to end of box
| undefined | |
children | Array of components inside of box | undefined | |
customHeight | Set height for box, options are:
| undefined | |
direction | Set direction of box options are: | undefined | |
justifyContent | Set how the box children fill the space of the box:
| undefined | |
onClick | Callback function that executes when the component is clicked | undefined |
Examples
In this example, we will make a Whisper that has a Box component with two children. Both of the children will be buttons that will be placed side by side.
Last updated