PageContainer
PageContainer sets a standardized max width and horizontal padding for page
content. It centers itself horizontally when exceeding the maxWidth and
applies responsive padding.
Use it to wrap page-level content that should follow the standard content width. For full-bleed sections, simply omit the wrapper.
Import
import { PageContainer } from '@hoverinc/design-system-react-web';
Usage
The following example shows how PageContainer constrains wide content to a standard max width with horizontal padding:
Overriding styles
PageContainer extends Box, so you can pass any BoxProps to override
defaults:
Defaults
| Property | Value |
|---|---|
marginX | auto |
maxWidth | breakpoints.width500 |
paddingX | 500 (base), 800 (tablet+) |
width | 100% |