Box
Box is a basic wrapper component for most layout related needs.
React
deprecated
Rails
ready
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
| Name | Default | Description | 
|---|---|---|
| ref  | React.RefObject<HTMLDivElement> | |
| as  | "div" | React.ElementType | 
| sx Deprecated | SystemStyleObject |