Container

Limit the width of the page and center its content. Put a Row inside it to build the layout. See the page structure guide.

General

The Container has a maximum width and grows with the window until it.

Fluid

A fluid Container has no maximum width.

APIs

Container.Props

AttributeDescriptionTypeAccepted valuesDefault
fluidremove the maximum widthboolean-false
justifyhorizontal alignment, when the Container is a flex boxstringstart, end, center, space-around, space-betweenstart
alignvertical alignment, when the Container is a flex boxstringtop, middle, bottomtop
componentthe element to renderkeyof JSX.IntrinsicElements'div', 'main', 'section', ...div
...native propsHTMLAttributes'id', 'className', ...-

justify and align only have an effect when you make the Container a flex box, for example with style={{ display: 'flex' }}.

Ref

The ref points at the root element.

Edit this page on GitHub