ZUI

Search documentation

Find a page or a heading.

Page Container

The centered, max-width content column of a full-width surface, sized from a named max-width scale.

tsx

Installation

bash

Usage

tsx
tsx

Pick the width with size; className carries the surface's own padding and vertical rhythm. It centres only the column's width, not its content on both axes - for that, use Center instead.

API reference

PageContainer

Renders a div and takes every prop a div takes, plus:

The centred, max-width content column of a full-width surface, so content does not stretch edge to edge on a wide screen. size picks the width from the max-width scale; className carries the surface's own padding and vertical rhythm. It sets data-slot="page-container".

pageContainerVariants

The size variant: sm max-w-3xl, md (the default) max-w-5xl, lg max-w-7xl, full max-w-none.