All of the common API properties support using the responsive styles syntax if breakpoints are defined in the theme. Simply pass an array of values to the property instead of a single value.

The first value in the array will be the base style. The second value in the array will be applied at the smallest breakpoint and up. The third value will be applied at the second smallest breakpoint and up, etc.

Using null for one of the values in the array will cause the previous value to be applied until the next breakpoint.

Live Demo

All layout components share a common styling API as detailed below. These style props will accept any appropriate CSS values - including units like vw and vh, and functions like calc(), rgba(), hsl(), etc.

If you're using a theme, many of these style props will have direct access to the design tokens and scales in the theme. Refer to the tables below to see which style props have access to which theme keys.

In addition to the style props detailed below, all layout components also have access to the props mentioned in the advanced API section.

Component PropCSS PropertyTheme Key
displaydisplay
widthwidth
heightheight
minWidthmin-width
minHeightmin-height
maxWidthmax-width
maxHeightmax-height
overflowoverflow
overflowXoverflow-x
overflowYoverflow-y
verticalAlignvertical-align
transformtransform
transitiontransition
Component PropCSS PropertyTheme Key
flexflex
flexWrapflex-wrap
flexDirectionflex-direction
flexGrowflex-grow
flexShrinkflex-shrink
flexBasisflex-basis
alignItemsalign-items
alignContentalign-content
justifyItemsjustify-items
justifyContentjustify-content
alignSelfalign-self
justifySelfjustify-self
orderorder
Component PropCSS PropertyTheme Key
gridGapgrid-gap
gridColumnGapgrid-column-gap
gridRowGapgrid-row-gap
gridColumngrid-column
gridRowgrid-row
gridAutoFlowgrid-auto-flow
gridAutoColumnsgrid-auto-columns
gitAutoRowsgrid-auto-rows
gridTemplategrid-template
gridTemplateColumnsgrid-template-columns
gridTemplateRowsgrid-template-rows
gridTemplateAreasgrid-template-areas
gridAreagrid-area
Component PropCSS PropertyTheme Key
positionposition
toptop
bottombottom
leftleft
rightright
zIndexz-indexzIndices
Component PropCSS PropertyTheme Key
margin, mmarginspace
marginTop, mtmargin-topspace
marginBottom, mbmargin-bottomspace
marginLeft, mlmargin-leftspace
marginRight, mrmargin-rightspace
marginX, mxmargin-left and margin-rightspace
marginY, mymargin-top and margin-bottomspace
padding, ppaddingspace
paddingTop, ptpadding-topspace
paddingBottom, pbpadding-bottomspace
paddingLeft, plpadding-leftspace
paddingRight, prpadding-rightspace
paddingX, pxpadding-left and padding-rightspace
paddingY, pypadding-top and padding-bottomspace
Component PropCSS PropertyTheme Key
colorcolorcolors
backgroundColor, bgbackground-colorcolors
borderColorborder-colorcolors
fillfillcolors
strokestrokecolors
Component PropCSS PropertyTheme Key
fontFamilyfont-familyfonts
fontSizefont-sizefontSizes
fontWeightfont-weightfontWeights
lineHeightline-heightlineHeights
letterSpacingletter-spacingletterSpacings
textAligntext-align
textDecorationtext-decoration
textTransformtext-transform
fontStylefont-style
Component PropCSS PropertyTheme Key
borderborder
borderWidthborder-widthborderWidths
borderStyleborder-style
borderColorborder-colorcolors
borderRadiusborder-radiusradii
borderTopborder-top
borderTopWidthborder-top-widthborderWidths
borderTopStyleborder-top-style
borderTopColorborder-top-colorcolors
borderBottomborder-bottom
borderBottomWidthborder-bottom-widthborderWidths
borderBottomStyleborder-bottom-style
borderBottomColorborder-bottom-colorcolors
borderLeftborder-left
borderLeftWidthborder-left-widthborderWidths
borderLeftStyleborder-left-style
borderLeftColorborder-left-colorcolors
borderRightborder-right
borderRightWidthborder-right-widthborderWidths
borderRightStyleborder-right-style
borderRightColorborder-right-colorcolors
borderXborder-left and border-right
borderYborder-top and border-bottom
borderTopLeftRadiusborder-top-left-radiusradii
borderTopRightRadiusborder-top-right-radiusradii
borderBottomLeftRadiusborder-bottom-left-radiusradii
borderBottomRightRadiusborder-bottom-right-radiusradii
strokeWidthstroke-width
Component PropCSS PropertyTheme Key
backgroundImagebackground-image
backgroundSizebackground-size
backgroundPositionbackground-position
backgroundRepeatbackground-repeat
Component PropCSS PropertyTheme Key
textShadowtext-shadowshadows
boxShadowbox-shadowshadows