The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
---
title: Page Container
description: A container component that provides consistent max-width and padding based on size variants.
fragment: true
---
<ComponentPreview
name="page-container-demo"
description="Container with small, default, large, and full sizes"
peekCode
wide
/>
## Usage
```tsx
import { PageContainer } from 'ui-patterns/PageContainer'
```
```tsx
<PageContainer size="default">{/* Page content */}</PageContainer>
```
## Size Variants
The `PageContainer` supports four size variants:
- `small` - max-width: 768px
- `default` - max-width: 1200px
- `large` - max-width: 1600px
- `full` - no max-width constraint
Use `small` or `default` for most pages. Use `full` for dense page experiences such as logs, code, editors, charts, or tables that need the viewport width.