A versatile container used to provide layout and styling capabilities with configurable padding, margin, radius, and roundness.
Content inside a Box
Anatomy
<Box />Examples
Box components are used to provide a styled wrapper for other components. Boxes use the theme settings by default, and can be specified as needed.
Radii
The radius prop controls the border-radius of the element using predefined scale values: none, xs, sm, md, lg, xl, full.
none
xs
sm
md
lg
xl
full
Roundness
The roundness prop sets a multiplier for the element's radius: 1 through 6.
1
2
3
4
5
6
Padding
The p prop controls padding on all sides using predefined scale values 0 through 8.
0
1
2
3
4
5
6
8
Margin
The m prop controls margin on all sides using predefined scale values 0 through 8.
0
1
2
3
4
5
6
8