Page layout

The frame, a phone page scrolling, two or three panes, a record beside its list, page spacing

3 min readWritten for your agentMarkdown
  • One frame per app: the default. Every page sits in AppFrame's default look, the panel inset with a hairline edge, the theme's largest corner and its smallest shadow. variant="divider" (the panel flush and square) is an option for a whole app, never for one page among the others.
  • On a phone the page scrolls. Below 1024 px (max-wide:) AppFrame lets the document scroll under its sticking top bar, so have your router scroll to the top on a new route; a page that keeps a part pinned under its content (a conversation's composer, a list beside its record) takes <AppFrame scroll="panel">, its panel scrolling inside the window as on a desktop.
  • One container, two or three panes. A page keeps the frame's one container; a record read at length beside its list (an inbox, invoices) takes two: AppFramePanel size="list" then AppFrameSecondPanel, or ListDetail opens="panel" round them. A side pane beside a page that fills the row (a conversation's customer) is an AppFrameSecondPanel beside a default AppFramePanel, 300 px wide; below 1024 px an AppFrameSecondPanelTrigger at the end of the top bar opens it in a sheet, with no sheet or width query of your own. A record with its own side panel (an inbox's customer) is a third pane: ListDetailPanel's aside, never stacked inside the record. docs/screen-inbox.md is the whole inbox; EXAMPLES.md, "Two containers in the frame", has the other two-container pages. A search or filters over the list go in ListDetailList's filters (on the rows' edge, 12 px under the header), never in a box of your own above it. The record goes straight into ListDetailPanel with no padding of its own: the panel pads it once, on its title's edge, beside the list and in the phone's sheet.
  • A record opens beside its list. A row, card or bar a person presses opens its record in a RecordPeek panel at the content area's end: a card the page's whole height under the top bar, with previous, next, "Open full page" and close; useRecordPeek() keeps it in the URL. By default the card floats over the list's end: the table keeps its width and its columns, its end columns lie under the card, and the page's heading, New and filters make room beside it. Where the list's end columns must stay in view, layout: 'push' makes the list room instead: it narrows beside the card and keeps whole, readable columns (a column that no longer fits leaves whole: drop it by the list's own width, @max-xl:hidden), never one cut in half. On a list page give ListPage a record and peek, and make each row a RecordPeekItem with a RecordPeekTrigger; straight to the full page is mode: 'page' in peek, one word away. On a page of your own, RecordPeek goes around the page, right under the top bar (its PageBody inside RecordPeekList), never inside a list's body or a template's collection. EXAMPLES.md, "RecordPeek", has the example.
  • The page parts space themselves. PageBody stands its children a section apart (32 px; spaced={false} where a holder of your own spaces them), a PageHeader keeps its own space over and under it (spaced={false} over a part that holds the room itself, such as a Wizard's step strip; in a template its margins give way, a settings section's heading included), a divided bar opening a body takes the page's top edge: write no margin, padding or gap on them. Your own glue between parts (a row, a stack of cards) takes pageRoles (inset, top, section, block, row), and words beside a ProgressCircle go in its label.

Where would you like to start?

Free · now

The Goop plugin

A design system for your AI coding agent, so screen ten matches screen one.

/plugin marketplace add goop-so/skillsthen /plugin install goop@goopCodex, Cursor, ChatGPT, the Claude app and more: Connect Goop
FreePro

The components

Every part live, with its props, its keys and what an agent sees. Whole page and app templates, working with sample data.