mirror of
https://github.com/supabase/supabase.git
synced 2026-12-06 08:29:01 +00:00
Adjusts layout / page patterns including design system documentation and page components. <img width="937" height="643" alt="image" src="https://github.com/user-attachments/assets/5f7864a3-04ae-4ccf-b2b8-d9fe5e29554e" /> **To test** - Ensure all existing page types in Studio are un-effected. They shouldn't be since existing components aren't touched. - Run design-system and have a read through layout and page header documentation. Make sure you understand when and where to use the various combinations of page components and their variants. **Next** Once we are happy with these patterns we can gradually start to update Studio pages that make use of breadcrumbs and/or sub navigation. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Added PageBreadcrumbs and PageNav page chrome * Several new interactive layout examples (Auth Emails, Edge Functions, Full‑Width, Logs) and demo pages * **Documentation** * New docs for PageBreadcrumbs and PageNav * Reworked layout guidance and patterns; updated fragment/example docs and usage notes * **Improvements** * Component preview now supports explicit padding control * Simplified page header demo and updated previews <!-- review_stack_entry_start --> [](https://app.coderabbit.ai/change-stack/supabase/supabase/pull/46126?utm_source=github_walkthrough&utm_medium=github&utm_campaign=change_stack) <!-- review_stack_entry_end --> <!-- end of auto-generated comment: release notes by coderabbit.ai -->
34 lines
800 B
Plaintext
34 lines
800 B
Plaintext
---
|
|
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.
|