Files
supabase/apps/design-system/registry/default/example/page-container-demo.tsx
ff599edf14 Page components (#40289)
* change database to pagelayout

* page components

* design system documentation

* reduce preview width

* revert studio

* functions apply page

* layout

* interfaces

* remove demos

* pckage

* format

* format

* Apply suggestion from @Copilot

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* build registry

* pckg

* build script to allow index files

* switch exports

* fixes

* gen exports

* remove invalid prop

* fix typecheck

* fix prettier

* Revert "remove invalid prop"

This reverts commit 118ecd40c5.

* Revert "fix typecheck"

This reverts commit 0e1ec8fb61.

* Revert "fix prettier"

This reverts commit 2f25ed695c.

* pretter

* fresh pnpm i

* Update pnpm lock

* fix import

* revert

* Update packages/ui-patterns/src/PageContainer/index.tsx

Co-authored-by: Charis <26616127+charislam@users.noreply.github.com>

* Update packages/ui-patterns/src/PageHeader/index.tsx

Co-authored-by: Charis <26616127+charislam@users.noreply.github.com>

* Update packages/ui-patterns/src/PageSection/index.tsx

Co-authored-by: Charis <26616127+charislam@users.noreply.github.com>

* ts fix

* Update apps/design-system/content/docs/ui-patterns/page.mdx

Co-authored-by: Danny White <3104761+dnywh@users.noreply.github.com>

* change to layouts and examples

---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Danny White <3104761+dnywh@users.noreply.github.com>
Co-authored-by: Joshen Lim <joshenlimek@gmail.com>
Co-authored-by: Charis <26616127+charislam@users.noreply.github.com>
2025-11-11 04:02:30 +00:00

21 lines
873 B
TypeScript

import { PageContainer } from 'ui-patterns/PageContainer'
export default function PageContainerDemo() {
return (
<div className="w-full space-y-4">
<PageContainer size="small" className="bg-muted border rounded-lg p-4">
<p>This is a page container with small size (768px max-width)</p>
</PageContainer>
<PageContainer size="default" className="bg-muted border rounded-lg p-4">
<p>This is a page container with default size (1200px max-width)</p>
</PageContainer>
<PageContainer size="large" className="bg-muted border rounded-lg p-4">
<p>This is a page container with large size (1600px max-width)</p>
</PageContainer>
<PageContainer size="full" className="bg-muted border rounded-lg p-4">
<p>This is a page container with full size (no max-width)</p>
</PageContainer>
</div>
)
}