---
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/"
---

# Arranged app frame

The page's frame in the arrangement it asks, for React and Tailwind CSS. Part of Goop Pro.

Pro. Its export: `ArrangedAppFrame`.

## When to use

- The page's frame in the arrangement it asks.

## 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 Arranged app frame on every screen instead of drawing a new one: the same height, the same focus ring, the same spacing. As a Pro part, its command comes from Goop's server once you sign in, with a one-time link that lasts ten minutes.

```sh
npx shadcn@4.23.1 add https://registry.goop.so/g/<link>/trail-app-frame-arrangements.json --yes
```

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

## Usage

```tsx
import { ArrangedAppFrame, ArrangedAppFrameRail, ArrangedAppFramePanel, ArrangedAppFrameTrigger } from '@/components/goop/patterns/app-frame-arrangements';
import { Sidebar } from '@/components/ui/goop/sidebar';
import { TopBar, TopBarRow, TopBarGroup, TopBarTitle } from '@/components/ui/goop/top-bar';

<ArrangedAppFrame arrangement="focus" onBack={() => history.back()}>
  <ArrangedAppFrameRail>
    <Sidebar aria-label="Main">…</Sidebar>
  </ArrangedAppFrameRail>
  <ArrangedAppFramePanel
    header={
      <TopBar role="banner">
        <TopBarRow>
          <TopBarGroup>
            <ArrangedAppFrameTrigger />
            <TopBarTitle>New invoice</TopBarTitle>
          </TopBarGroup>
        </TopBarRow>
      </TopBar>
    }
  >
    …
  </ArrangedAppFramePanel>
</ArrangedAppFrame>
```

- Fits: frame (its recipe).
- height, width, padding, border: add no class for these.

## API reference

### Options

- `onBack?: () => void` — `focus`: the way back, called by the trigger box's back control and by Escape in the frame.
- `backLabel?: string = 'Back'` — `focus`: the back control's spoken name.

### Parts

- `ArrangedAppFrameRail` — The navigation's column, by arrangement
- `ArrangedAppFramePanel` — The page's `main`, by arrangement
- `ArrangedAppFrameTrigger` — The box of the navigation's control, by arrangement

- data-slot values (to select a part by): app-frame-back, app-frame-bar, app-frame-rail, app-frame-row

## Accessibility

- 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

- [Sidebar](/themes/trail/components/sidebar): The app's main navigation down one side of the window.
- [Top bar](/themes/trail/components/top-bar): The bar across the top of a page in the app frame, with its title, tabs and actions.
- [Approval request](/themes/trail/components/approval-request): An AI agent's request for a person's yes before it acts, with Approve and Deny, showing the decision once made.
- [Card list](/themes/trail/components/card-list): A short list of rows inside an outline card, for what is recent, due or shared.
