Box

A fundamental layout building block.

Usage

Use the Box component to quickly create responsive layouts with flexible items. Adjust the spacing, alignment, and direction for fine-tuned control over your layouts.

Basic Layout

Box container with a basic row layout.

<Box width="12" height="12" style={{ backgroundColor: 'var(--color-accent-4)' }}></Box>

API

Props

PropTypeDefaultRequired
classNamestring--
styleCSSProperties--
childrenReactNode--
MarginPropsToken<MarginProps>--
PaddingPropsToken<PaddingProps>--
displayResponsive<DisplayValue>--
LayoutPropsToken<LayoutProps>--
Tokens
Previous
Container
Next