npx shadcn@4.23.1 add @goop/meadow-app-frameApp frame
FreeThe 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.
What an agent sees
- AppFrameRailThe rail
- AppFramePanelThe page's
main - AppFrameSecondPanelThe second container
- AppFrameFooterThe frame's foot, passed to
AppFrame'sfooter - AppFrameTriggerThe control that opens the navigation below the breakpoint, first in a top bar
- AppFrameSecondPanelTriggerThe control that opens the second panel below the breakpoint, at the end of the list column's header
- AppFrameListToggleThe 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
- AppFramePanelSeamA seam for a frame composed round this one
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>
);
}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.
npx shadcn@4.23.1 add @goop/meadow-app-frameAdd the Goop App frame to this project. The install steps are at https://goop.so/docs/install.mdUsage
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
- Each option with its sentence: app-frame--options.md
- State: navigationOpen (navigationOpen / defaultNavigationOpen / onNavigationOpenChange); listOpen (listOpen / defaultListOpen / onListOpenChange); drawn by data-state=open
| Part | What it is |
|---|---|
| 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
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.
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
import { AppFrame } from '@/components/goop/patterns/app-frame';Options
- arrangement?: AppFrameArrangement — The contract's arrangement (the catalogue's ids): Meadow draws
railalone, 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; orpanel, 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 anAppFrameListToggle. - 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.
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:listis the list column at the theme's list width andtasksthe 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.
import { AppFrameSecondPanelTrigger } from '@/components/goop/patterns/app-frame';Options
- children?: ReactElement — The control that opens the second panel; a quiet
TopBarActionif left out. - label?: string = 'Show details' — The spoken name of the theme's own control.
AppFrameSecondPanel
The second container.
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.
import { AppFrameTrigger } from '@/components/goop/patterns/app-frame';Options
- children?: ReactElement — The control that opens the navigation; a quiet
TopBarActionif 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
Its states are drawn from attributes and props, so assistive technology and your agent read the same thing:
| State | Drawn by |
|---|---|
| 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.