On this page:

Base

Base CSS Properties

Prop NameCSS PropertyDescription
mmarginMargin
mtmarginTopMargin top
mrmarginRightMargin right
mbmarginBottomMargin bottom
mlmarginLeftMargin left
mxmarginLeft, marginRightMargin left & right
mymarginTop, marginBottomMargin top & bottom
ppaddingPadding
ptpaddingTopPadding top
prpaddingRightPadding right
pbpaddingBottomPadding bottom
plpaddingLeftPadding left
pxpaddingLeft, paddingRightPadding left & right
pypaddingTop, paddingBottomPadding top & bottom
wwidthWidth
hheightHeight
minWminWidthMin width
minHminHeightMin height
maxWmaxWidthMax width
maxHmaxHeightMax height
bgbackgroundColorBackground color
clcolorText color
opopacityOpacity
bdborderBorder
bdColorborderColorBorder color
bdWidthborderWidthBorder width
bdStyleborderStyleBorder style
radiusborderRadiusBorder radius
positionpositionPosition
ttopTop
rrightRight
bbottomBottom
lleftLeft
zzIndexZ-index
ininsetInset
displaydisplayDisplay
flexflexFlex
flexGrowflexGrowFlex grow
flexShrinkflexShrinkFlex shrink
flexBasisflexBasisFlex basis
flexDirflexDirectionFlex direction
flexDirectionflexDirectionFlex direction
flexWrapflexWrapFlex wrap
justifyContentjustifyContentJustify content
alignItemsalignItemsAlign items
alignContentalignContentAlign content
gridgridGrid
gridColumngridColumnGrid column
gridRowgridRowGrid row
gridAutoFlowgridAutoFlowGrid auto flow
gridAutoColumnsgridAutoColumnsGrid auto columns
gridAutoRowsgridAutoRowsGrid auto rows
gridTemplateColumnsgridTemplateColumnsGrid template columns
gridTemplateRowsgridTemplateRowsGrid template rows
gridTemplateAreasgridTemplateAreasGrid template areas
gridAreagridAreaGrid area
gridGapgridGapGrid gap
gridRowGapgridRowGapGrid row gap
gridColumnGapgridColumnGapGrid column gap
gridRowStartgridRowStartGrid row start
gridRowEndgridRowEndGrid row end
gridColumnStartgridColumnStartGrid column start
gridColumnEndgridColumnEndGrid column end

Base Component API

<Base />

PropTypeDefaultDescription
componentReact.ElementType'div'HTML tag or component to render
styleReact.CSSPropertiesCustom style
childrenReact.ReactNodeContent inside the component
...StyleProps(see table above)Shorthand style props
refReact.RefForwarded ref
...restanyOther props passed to the component

Note: