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

# Overview grid

An overview page's body, stacking a row of stats, a wide panel and a pair of cards, for React and Tailwind CSS. Part of Goop Pro.

Pro. Its export: `OverviewGrid`.

## When to use

- An overview page's body, stacking a row of stats, a wide panel and a pair of cards.

## 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 Overview grid 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-overview-grid.json --yes
```

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

## Usage

```tsx
import { OverviewGrid, OverviewGridStats, OverviewGridWide, OverviewGridPair } from '@/components/goop/patterns/overview-grid';
import { Card, CardText, CardDescription, CardHeader, CardTitle } from '@/components/ui/goop/card';
import { Stat, StatValue } from '@/components/ui/goop/stat';
import { TrendChip } from '@/components/ui/goop/trend-chip';
import { ChartBar } from '@/components/ui/goop/chart-bar';

<OverviewGrid>
  {/* by the grid's width: 2 tiles across from 384 px, 3 from 576, 4 from 896; a tile sets no width or padding */}
  <OverviewGridStats aria-label="This month at a glance">
    <Card>
      <CardText>
        <CardDescription>Money in</CardDescription>
        <Stat>
          <StatValue>€48,200</StatValue>
          <TrendChip direction="up">6%</TrendChip>
        </Stat>
      </CardText>
    </Card>
    <Card>
      <CardText>
        <CardDescription>Money out</CardDescription>
        <Stat>
          <StatValue>€31,650</StatValue>
        </Stat>
      </CardText>
    </Card>
  </OverviewGridStats>
  <OverviewGridWide>
    <ChartBar
      title="Spent by month"
      summary="Money spent in each of the last three months: October was the highest."
      config={{ spent: { label: 'Spent' } }}
      categoryKey="month"
      data={[
        { month: 'Sep', spent: 27100 },
        { month: 'Oct', spent: 29400 },
        { month: 'Nov', spent: 31650 },
      ]}
    />
  </OverviewGridWide>
  {/* side by side from 576 px of the grid's width; each part straight in here, never in a div */}
  <OverviewGridPair>
    <Card variant="outline">
      <CardHeader>
        <CardTitle>Due this week</CardTitle>
      </CardHeader>
    </Card>
    <Card variant="outline">
      <CardHeader>
        <CardTitle>Latest</CardTitle>
      </CardHeader>
    </Card>
  </OverviewGridPair>
</OverviewGrid>
```

- Fits: overview (its recipe).
- **Pro:** A whole overview page, worked: the page-overview item (not installed with this template; in a Next.js App Router app, online, `npx shadcn add @goop-pro/trail-page-overview` writes it to `app/goop/overview/page.tsx`).
- width: add no class for these.

## API reference

### Options

- `arrangement?: OverviewGridArrangement` — The arrangement: `tiles-wide-pair` the parts stacked, `card-grid` an even grid of chart cards, `chart-over-table` a filters row, a chart and the table under it, `home-column` a centred column of a greeting, quick actions and a feed.

### Parts

- `OverviewGridStats` — The row of number tiles
- `OverviewGridWide` — One panel across the grid's whole width
- `OverviewGridPair` — Two panels side by side (one over the other in a narrow grid); align?: 'start' | 'stretch' — How the two panels end: each at its own height (`start`, the default), or both as tall as the taller (`stretch`)

- data-slot values (to select a part by): overview-grid, overview-grid-cards, overview-grid-group, overview-grid-list, overview-grid-panel

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

- [Card](/themes/trail/components/card): A framed surface that holds one piece of content or a list of settings rows.
- [Stat](/themes/trail/components/stat): A big figure with the word for what it counts, for a dashboard tile.
- [Trend chip](/themes/trail/components/trend-chip): A small chip with how much a figure rose or fell.
- [Chart bar](/themes/trail/components/chart-bar): A bar chart of amounts by category or period, side by side or stacked.
