Box

Box is a basic wrapper component for most layout related needs.

React
deprecatedNot reviewed for a11y
Rails
readyNot reviewed for a11y

The Box component is considered a utility component, as it can be used for something as simple as a rounded corner box.

By default there are no additional styles, as these can be achieved using styled system props to enable custom theme-aware styling.

React examples

Default - styled using the sx prop

Some text inside of a Box

Props

Box

NameRequiredDescription
ref
React.RefObject<HTMLDivElement>
as
React.ElementType
sx
SystemStyleObject