Center

Horizontally centered container with a configurable max-width.

Category: layout · WCAG 2.1-AA · layout, center, wrapper

Props

PropTypeDefaultDescription
maxWidthstring48remCSS max-width value

Design tokens

When to use

When not to use

Examples

Centered content

Centered container with custom max-width

<Center maxWidth="60rem"><p>Content</p></Center>

Related components

← Back to docs