Box

The fundamental building block.

Only display prop is unique to the Box component.

PropTypeDefault
displayResponsive<"none" | "inline" | "inline-block" | "block">

The following props are shared between Box, Container, Flex, Grid, and Section layout components.

PropTypeDefault
positionResponsive<"static" | "relative" | "absolute" | "fixed" | "sticky">
insetResponsive<Union<string, "-9" | "-8" | "-7" | "-6" | "-5" | "-4" | "-3" | "-2" | "-1" | "0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9">>
topResponsive<Union<string, "-9" | "-8" | "-7" | "-6" | "-5" | "-4" | "-3" | "-2" | "-1" | "0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9">>
bottomResponsive<Union<string, "-9" | "-8" | "-7" | "-6" | "-5" | "-4" | "-3" | "-2" | "-1" | "0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9">>
leftResponsive<Union<string, "-9" | "-8" | "-7" | "-6" | "-5" | "-4" | "-3" | "-2" | "-1" | "0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9">>
rightResponsive<Union<string, "-9" | "-8" | "-7" | "-6" | "-5" | "-4" | "-3" | "-2" | "-1" | "0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9">>
pResponsive<Union<string, "0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9">>
pyResponsive<Union<string, "0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9">>
pxResponsive<Union<string, "0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9">>
ptResponsive<Union<string, "0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9">>
pbResponsive<Union<string, "0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9">>
plResponsive<Union<string, "0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9">>
prResponsive<Union<string, "0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9">>
widthResponsive<string>
minWidthResponsive<string>
maxWidthResponsive<string>
heightResponsive<string>
minHeightResponsive<string>
maxHeightResponsive<string>
gridColumnResponsive<string>
gridColumnStartResponsive<string>
gridColumnEndResponsive<string>
gridRowResponsive<string>
gridRowStartResponsive<string>
gridRowEndResponsive<string>
flexShrinkResponsive<Union<string, "0" | "1">>
flexGrowResponsive<Union<string, "0" | "1">>

This component is based on the div element and also supports common margin props m, mx, my, ml, mr, mt, mb. View source

Use the display prop to specify the layout behaviour. You can change it across breakpoints using the object syntax.

We do not plan to create a component that combines block, flex, and grid display values, as this usually leads to messy layouts. Sensibly composing Box, Flex, and Grid components is the key to creating even the most complex responsive layouts.

Single Sign-On

Integrate with any identity provider

Use the position, inset, top, bottom, left, and right props to create positioned elements. You can also change these values across breakpoints using the object syntax.

The position offset props don’t support space scale values like "1", "2", "3", … , encouraging the separation of layout concerns. Use margin and padding props to achieve a similar result.

Audit Logs

Ingest and export events

New

Use the width and height props to specify the Box size.

As usual, the numerical values "1", "2", "3", … , correspond to the space scale steps.

Use the shrink and grow props to control the size of elements in a flex container.

Use the p, py, px, pt, pb, pl, and pr props to add padding around elements.

Single Sign-On → Login Flows → SP-Initiated SSO

Combine padding and margin props to increase the clickable area of links.