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

# Settings page

A settings page inside the app frame's panel, for React and Tailwind CSS. Part of Goop Pro.

Pro. Its export: `SettingsPage`.

## When to use

- A settings page inside the app frame's panel.

## 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 Settings page 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-settings-page.json --yes
```

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

## Usage

```tsx
import { SettingsPage } from '@/components/goop/patterns/settings-page';
import { TopBar, TopBarRow, TopBarGroup, TopBarTitle } from '@/components/ui/goop/top-bar';
import { AppFrameTrigger } from '@/components/goop/patterns/app-frame';
import { PageHeader, PageHeaderContent, PageHeaderTitle, PageHeaderDescription } from '@/components/ui/goop/page-header';
import { Card } from '@/components/ui/goop/card';
import { Field } from '@/components/ui/goop/field';
import { Switch } from '@/components/ui/goop/switch';

<SettingsPage
  header={
    <TopBar role="banner">
      <TopBarRow>
        <TopBarGroup>
          <AppFrameTrigger />
          <TopBarTitle>Settings</TopBarTitle>
        </TopBarGroup>
      </TopBarRow>
    </TopBar>
  }
  heading={
    <PageHeader>
      <PageHeaderContent>
        <PageHeaderTitle>Workspace settings</PageHeaderTitle>
        <PageHeaderDescription>How the workspace is named and reminds you.</PageHeaderDescription>
      </PageHeaderContent>
    </PageHeader>
  }
  sections={
    <Card variant="outline" asChild>
      <ul>
        <Field as="li" label="Weekly digest" description="A summary every Monday">
          {(control) => <Switch {...control} />}
        </Field>
      </ul>
    </Card>
  }
/>
```

- Fits: account, settings (their recipes).
- width, padding, gap, border: add no class for these.

## API reference

### Options

- `header: ReactNode` — The page's top bar, held over the panel's body: the theme's TopBar, `role="banner"`.
- `heading?: ReactNode` — The page's heading over the sections: the theme's PageHeader.
- `subNav?: ReactNode` — The section navigation: a labelled `nav` of SidebarGroup rows beside the sections (`sections`) or above them (`column`); in `tabs`, a TabsList (two to five tabs), the page in `<Tabs className="contents">`.
- `sections: ReactNode`
- `align?: 'start' | 'center'` — Where the page sits on a wide window: centred in the panel (`center`) or at the page's `start` edge, 24 px from the panel's start, where the list and record pages start.
- `arrangement?: SettingsPageArrangement` — The contract's arrangement: `column`, one column of sections; `sections`, the sections beside a navigation of their own; `tabs`, a strip of tabs over the shown tab's sections; `mode`, settings in place of the app's navigation, drawn as `sections` today.

## 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

- [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.
- [App frame](/themes/trail/components/app-frame): The window every page of the app sits in, with the navigation at its side and the top bar over the page.
- [Page header](/themes/trail/components/page-header): The title block that opens a page, with its page-level actions.
- [Card](/themes/trail/components/card): A framed surface that holds one piece of content or a list of settings rows.
