Skip to content


The Box component serves as a wrapper component for most layout related needs. Use Box to set values such as display, width, height, and more. See the LAYOUT section of our System Props documentation for the full list of available props. In practice, this component is used frequently as a wrapper around other components to achieve Box Model related styling.

Default example

Box can be used to create both inline and
block-level elements,
elements with fixed or responsive width and height,
and more!

System props

Box components get the COMMON, LAYOUT, and FLEX categories of system props. Read our System Props doc page for a full list of available props.

Component props

Prop nameTypeDefaultDescription
asStringdivsets the HTML tag for the component
Edit this page on GitHub
3 contributorsVanAndersonBinaryMuseemplums
Last edited by VanAnderson on March 8, 2021