mirror of
https://github.com/supabase/supabase.git
synced 2026-10-11 04:15:04 +03:00
1.2 KiB
1.2 KiB
description, globs, alwaysApply
| description | globs | alwaysApply | |
|---|---|---|---|
| Studio: page layout patterns (PageContainer/PageHeader/PageSection) and sizing guidance. Use to learn how to create or update existing pages in Studio. |
|
false |
Studio layout
Use the Design System UI pattern docs as the source of truth:
- Documentation:
apps/design-system/content/docs/ui-patterns/layout.mdx - Demos:
apps/design-system/registry/default/example/page-layout-settings.tsxapps/design-system/registry/default/example/page-layout-list.tsxapps/design-system/registry/default/example/page-layout-list-simple.tsxapps/design-system/registry/default/example/page-layout-detail.tsx
Guidelines
- Build pages using
PageContainer,PageHeader, andPageSectionfor consistent spacing and max-widths. - Choose
sizebased on content:- Settings/config:
size="default" - List/table-heavy:
size="large" - Full-screen experiences:
size="full"
- Settings/config:
- For list pages:
- If filters/search exist, align table actions with filters (avoid
PageHeaderAside/PageSectionAsidefor those actions). - If no filters/search, actions can go in
PageHeaderAsideorPageSectionAsidedepending on context.
- If filters/search exist, align table actions with filters (avoid