align | String | auto * flex-start flex-end center stretch baseline | Override childAlign of parent <Box/> |
backgroundColor | String | Color | ... |
borderColor | String | Color | ... |
borderRadius | String | Length | ... |
borderStyle | String | Length | ... |
borderWidth | String | Length | ... |
childAlign | String | flex-start * flex-end center stretch baseline | Align children along the cross axis |
childBasis | String | Length | When childWrap='wrap' and non-percentage length, children will grow/shrink to roughly maintain this size. Think of it as ideal length 😉 . |
childDirection | String | column * column-reverse row row-reverse | Vertical or horizontal orientation of children |
childJustify | String | flex-start * flex-end center space-between space-around | Align children along the main axis |
childWrap | String | nowrap * wrap wrap-reverse | Define whether or not children can wrap |
childWrapLastGrow | String | nowrap * wrap wrap-reverse | Define whether or not children can wrap |
childWrapCount | Number | 20 * | Typical items show before wrapping. Useful for maintaining ChildBasis width when fewer than typical wrap count. |
childSpacing | String | Length | Spacing between children on any axis |
color | String | Color | ... |
css | String | Template literal containing valid CSS | See styled-components documentation |
grow | Number | 0 * | Amount Box should grow to fill available space |
height | String | Length | ... |
opacity | Number | 1.0 -0.0 | ... |
padding | String | CSS length | ... |
shrink | Number | 1 * | Amount Box should shrink inside available space |
width | String | Length | ... |
...rest | Any | Any | Rest of props (aside from children ) are spread onto Box itself (e.g. onClick , onPress , etc.) |