---
agent:
  instructions: "Search goop.so for Goop's components, templates, design skill, docs, pricing and terms. Ask in keywords or a plain question, such as \"date picker props\" or \"is the design skill free\"; the answer is the matching page sections in Markdown, each with its address."
  endpoint: "https://goop.so/.well-known/search?q={query}"
  method: "GET"
  documentation: "https://developers.cloudflare.com/ai-search/how-to/search-for-agents/"
---

# App frame

The window every page of the app sits in, with the navigation at its side and the top bar over the page, for React and Tailwind CSS. Free, MIT.

Free. Its export: `AppFrame`.

## Try it

Press a sidebar row (or Tab to it and press Enter) to open its page beside it; opening Inbox reads its notices, so its count goes. On a phone-sized window the same five pages stand in a bar across the frame’s foot, where a press (or Enter or Space) opens a page the same way, and the top bar’s button opens the sidebar in a sheet. In a theme whose frame is the icon rail (Meadow), the rail’s icons switch the section (its tile goes home, its plus adds a note, the avatar opens your account), the list column’s rows open their page beside it, and the list’s toggle folds it into the rail and back.

The pages, the notes and the notices are our own sample, and live in this page alone.

## When to use

- The window every page of the app sits in, with the navigation at its side and the top bar over the page.

## Installation

Paste the prompt below into your coding agent. It reads Goop's install steps, installs the part and its tokens once, then reuses this same App frame on every screen instead of drawing a new one: the same height, the same focus ring, the same spacing.

```sh
npx shadcn@4.23.1 add @goop/meadow-app-frame
```

```text
Add the Goop App frame to this project. The install steps are at https://goop.so/docs/install.md
```

## Usage

```tsx
import { AppFramePanelSeam, AppFramePanel } from '@/components/goop/patterns/app-frame';

import { Composer, ComposerActions, ComposerEditor, ComposerSubmit, ComposerToolbar } from '@/components/ui/goop/composer';
import { Item } from '@/components/ui/goop/item';
import { WeekCalendar } from '@/components/ui/goop/week-calendar';
import {
  AppFrame,
  AppFrameFooter,
  AppFrameListToggle,
  AppFrameRail,
  AppFrameSecondPanel,
  AppFrameSecondPanelTrigger,
  AppFrameTrigger,
} from '@/components/goop/patterns/app-frame';
import { ListPage } from '@/components/goop/patterns/list-page';

function CalendarScreen() {
  return (
    <AppFrame
      footer={
        <AppFrameFooter floating>
          <Composer aria-label="Assistant">
            <ComposerEditor aria-label="Your question" placeholder="Ask anything…" />
            <ComposerToolbar>
              <ComposerActions>
                <ComposerSubmit aria-label="Send" />
              </ComposerActions>
            </ComposerToolbar>
          </Composer>
        </AppFrameFooter>
      }
    >
      <AppFrameRail aria-label="Main">
        <AppFrameListToggle />
      </AppFrameRail>
      <ListPage
        size="tasks"
        header={
          <>
            <AppFrameTrigger />
            <AppFrameListToggle />
          </>
        }
        secondaryActions={<AppFrameSecondPanelTrigger label="Show the week" />}
        collection={<Item variant="line">Renew the seed order</Item>}
      />
      <AppFrameSecondPanel aria-label="Week" header={<AppFrameTrigger />}>
        <WeekCalendar
          aria-label="This week"
          days={[{ id: '2026-11-23', name: 'Mon', date: '23' }]}
          events={[{ id: 'plan', day: '2026-11-23', start: 600, end: 660, title: 'Planting plan' }]}
        />
      </AppFrameSecondPanel>
    </AppFrame>
  );
}
```

- Fits: app, chat, flow, frame, inbox, overview, record, schedule, states (their recipes).
- height, width, padding, gap, corner, border, background, text: add no class for these.

## API reference

### Parts

- `AppFrameRail` — The rail
- `AppFramePanel` — The page's `main`; its props: app-frame--panel.md
- `AppFrameSecondPanel` — The second container; its props: app-frame--second-panel.md
- `AppFrameFooter` — The frame's foot, passed to `AppFrame`'s `footer`; its props: app-frame--footer.md
- `AppFrameTrigger` — The control that opens the navigation below the breakpoint, first in a top bar; its props: app-frame--trigger.md
- `AppFrameSecondPanelTrigger` — The control that opens the second panel below the breakpoint, at the end of the list column's header; its props: app-frame--second-panel-trigger.md
- `AppFrameListToggle` — The list column's toggle — the theme's quiet IconButton with the pack's three-line mark, named for what a press does ("Collapse list", "Expand list"), saying the column it controls and whether it is shown; its props: app-frame--list-toggle.md
- `AppFramePanelSeam` — A seam for a frame composed round this one

- data-slot values (to select a part by): app-frame, app-frame-footer, app-frame-list-toggle, app-frame-navigation-list, app-frame-panel, app-frame-panel-body, app-frame-panel-header, app-frame-phone-foot, app-frame-phone-nav, app-frame-rail, app-frame-second-panel, app-frame-second-panel-body, app-frame-second-panel-header, app-frame-second-panel-trigger, app-frame-trigger

### AppFrameFooter

The frame's foot, passed to `AppFrame`'s `footer`.

```tsx
import { AppFrameFooter } from '@/components/goop/patterns/app-frame';
```

### Options

- floating?: boolean = false — A bar over the page, centred in the window, in place of the strip: it draws `children`, not `start` and `end`.
- children?: ReactNode — The floating foot's content: the theme's Composer.
- start?: ReactNode — Controls at the strip's start: quiet IconButtons.
- end?: ReactNode — Controls at the strip's end: quiet IconButtons, 2 px apart.

### AppFrameListToggle

The list column's toggle — the theme's quiet IconButton with the pack's three-line mark, named for what a press does ("Collapse list", "Expand list"), saying the column it controls and whether it is shown.

```tsx
import { AppFrameListToggle } from '@/components/goop/patterns/app-frame';
```

### Options

- collapseLabel?: string = 'Collapse list' — Its spoken name while the list is shown.
- expandLabel?: string = 'Expand list' — Its spoken name while the list is collapsed.
- Also takes: type?: 'button' | 'submit' | 'reset'; onClick?: (event: MouseEvent) => void; disabled?: boolean; tooltip?: string | false; tooltipKeys?: readonly string[]; loading?: boolean = false; loadingLabel?: string = 'Loading'

### AppFrame: every option

```tsx
import { AppFrame } from '@/components/goop/patterns/app-frame';
```

### Options

- arrangement?: AppFrameArrangement — The contract's arrangement (the catalogue's ids): Meadow draws `rail` alone, every other id as it.
- scroll?: 'page' | 'panel' — What scrolls below the breakpoint: `page` (the default), the document, a container's header sticking at the window's top; or `panel`, the container's body inside a frame of the window's height, for a page that keeps a part pinned under its content.
- footer?: ReactNode — The foot, an `AppFrameFooter`: a strip across it, or (`floating`) a bar over the page; none if left out.
- navigationOpen?: boolean — Whether the navigation is open below the breakpoint, when the caller holds it.
- defaultNavigationOpen?: boolean = false — Whether the navigation starts open, when the frame holds it.
- onNavigationOpenChange?: (open: boolean) => void — Called as the navigation opens or closes: by its trigger, its close control, Escape, the scrim, a link in it, or the window reaching the breakpoint.
- navigationLabel?: string = 'Navigation' — The open navigation's spoken name.
- navigationCloseLabel?: string = 'Close navigation' — Its close control's spoken name.
- listOpen?: boolean — Whether the list column is shown beside the page from the breakpoint up, when the caller holds it.
- defaultListOpen?: boolean = true — Whether the list column starts shown (the default) or collapsed, when the frame holds it.
- onListOpenChange?: (open: boolean) => void — Called as the list column is collapsed (`false`) or shown again (`true`) by an `AppFrameListToggle`.
- container?: HTMLElement | null — Where the open navigation is drawn; the end of `<body>` when left out.
- phoneNav?: ReactNode — A phone's bottom navigation, across the foot below `narrow`: the theme's TabBar of the app's places (five or fewer; more keep the menu button's sheet alone).
- State: navigationOpen (navigationOpen / defaultNavigationOpen / onNavigationOpenChange); listOpen (listOpen / defaultListOpen / onListOpenChange); drawn by data-state=open

### AppFramePanel

The page's `main`.

```tsx
import { AppFramePanel } from '@/components/goop/patterns/app-frame';
```

### Options

- header?: ReactNode — Its header, never scrolled with the body: the list's header row, or the page's TopBar.
- size?: 'fill' | 'list' | 'tasks' = 'fill' — Beside an `AppFrameSecondPanel`: `list` is the list column at the theme's list width and `tasks` the wider to-do column (a week beside it), the second the page either way; `fill` (the default) takes the row, the second the side pane.

### AppFrameSecondPanelTrigger

The control that opens the second panel below the breakpoint, at the end of the list column's header.

```tsx
import { AppFrameSecondPanelTrigger } from '@/components/goop/patterns/app-frame';
```

### Options

- children?: ReactElement — The control that opens the second panel; a quiet `TopBarAction` if left out.
- label?: string = 'Show details' — The spoken name of the theme's own control.

### AppFrameSecondPanel

The second container.

```tsx
import { AppFrameSecondPanel } from '@/components/goop/patterns/app-frame';
```

### Options

- header?: ReactNode — Its header, never scrolled with the body: a TopBar.
- open?: boolean — Whether it holds the window below the breakpoint (the panel's place), when the caller holds it.
- defaultOpen?: boolean = false — Whether it starts holding the window below the breakpoint, when the container holds it.
- onOpenChange?: (open: boolean) => void — Called as it opens (its trigger) or closes (its close control) below the breakpoint.
- closeLabel?: string = 'Back to the list' — Its close control's spoken name.

### AppFrameTrigger

The control that opens the navigation below the breakpoint, first in a top bar.

```tsx
import { AppFrameTrigger } from '@/components/goop/patterns/app-frame';
```

### Options

- children?: ReactElement — The control that opens the navigation; a quiet `TopBarAction` if left out.
- label?: string = 'Show navigation' — The spoken name of the theme's own control.

## Accessibility

- hover, active, focus-visible: the browser's own (:hover, :active, :focus-visible): write nothing
- open: the attribute data-state=open

## Notes for AI

Give your coding agent this page as text instead of screenshots: the parts, the options, the states and the keys. An agent that reads the real part builds the real part, not a lookalike.

## Related

- [Composer](/themes/meadow/components/composer): A box to write a prompt, a comment, a reply or an email in, with attachments and a send button.
- [Item](/themes/meadow/components/item): One row of a list of records.
- [Week calendar](/themes/meadow/components/week-calendar): A week of events by the hour, the days across and the hours down, with an all-day row.
- [List page](/themes/meadow/components/list-page): A page that is a list of records, such as a to-do list or a feed.
