Skip to main content

Box

Examples of usage

API#

All of the properties of the <Box> component are not required. Pick whatever you want.

You can use these properties as well:

PropertyDescription
positionThe position CSS property
topThe top CSS property
rightThe right CSS property
bottomThe bottom CSS property
leftThe left CSS property
zIndexThe z-index CSS property
displayThe display CSS property
lineHeightThe line-height CSS property
backgroundThe background CSS property
fontSizeThe font-size CSS property
textAlignThe text-align CSS property
colorThe color CSS property
borderTopThe border-top CSS property
borderRightThe border-right CSS property
borderBottomThe border-bottom CSS property
borderLeftThe border-left CSS property
borderColorThe border-clolr CSS property
borderRadiusThe border-radius CSS property
widthThe width CSS property
minWidthThe min-width CSS property
maxWidthThe max-width CSS property
heightThe height CSS property
minHeightThe min-height CSS property
maxHeightThe max-height CSS property
flexThe flex CSS property
orderThe order CSS property
alignSelfThe align-self CSS property
overflowThe overflow CSS property
overflowXThe overflow-x CSS property
overflowYThe overflow-y CSS property
mthe margin CSS property
mtthe margin-top CSS property
mrthe margin-right CSS property
mbthe margin-bottom CSS property
mlthe margin-left CSS property
mxthe property that set both margin-left and margin-right
mythe property that set both margin-top and margin-bottom
pthe padding CSS property
ptthe padding-top CSS property
prthe padding-right CSS property
pbthe padding-bottom CSS property
plthe padding-left CSS property
pxthe property that set both padding-left and padding-right
pythe property that set both padding-top and padding-bottom