npx shadcn@4.23.1 add https://registry.goop.so/g/<link>/meadow-overview-grid.json --yesOverview grid
ProAn overview page's body, stacking a band of figures, a wide section and a pair of sections, each under its muted label, for React and Tailwind CSS. Part of Goop Pro.
What an agent sees
- OverviewGridStatsThe band of figures
- OverviewGridWideOne section across the grid's whole width
- OverviewGridPairTwo sections side by side (one over the other in a narrow grid)
import type { ReactNode } from 'react';
import { Badge } from '@/components/ui/goop/badge';
import { ListGroup, ListGroupHeader, ListGroupTitle } from '@/components/ui/goop/list-group';
import { Progress } from '@/components/ui/goop/progress';
import { Properties, PropertyRow } from '@/components/ui/goop/properties';
import { Stat, StatLabel, StatValue } from '@/components/ui/goop/stat';
import {
OverviewGrid,
OverviewGridPair,
OverviewGridStats,
OverviewGridWide,
} from '@/components/goop/patterns/overview-grid';
import { PageBody } from '@/components/goop/patterns/page-body';
function Section({ title, children }: { title: string; children: ReactNode }) {
return (
<ListGroup>
<ListGroupHeader variant="section"><ListGroupTitle>{title}</ListGroupTitle></ListGroupHeader>
{children}
</ListGroup>
);
}
function WeekOverview() {
return (
<PageBody variant="wide">
<OverviewGrid>
<OverviewGridStats aria-label="The week at a glance">
<div>
<StatLabel>Saplings planted</StatLabel>
<Stat><StatValue>222</StatValue><Badge variant="success" stateLabel="Up">+18%</Badge></Stat>
</div>
</OverviewGridStats>
<OverviewGridWide>
<Section title="By day">
<Properties variant="band">
<PropertyRow label="Monday">
<span className="flex grow items-center gap-3">
<Progress value={42} max={49} aria-label="Monday" />
<span className="w-20 shrink-0 text-start text-muted-foreground">42</span>
</span>
</PropertyRow>
</Properties>
</Section>
</OverviewGridWide>
<OverviewGridPair>
<Section title="Sites">…</Section>
<Section title="Recent activity">…</Section>
</OverviewGridPair>
</OverviewGrid>
</PageBody>
);
}When to use
- An overview page's body, stacking a band of figures, a wide section and a pair of sections, each under its muted label.
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.
npx shadcn@4.23.1 add https://registry.goop.so/g/<link>/meadow-overview-grid.json --yesAdd the Goop Overview grid to this project. The install steps are at https://goop.so/docs/install.mdUsage
import type { ReactNode } from 'react';
import { Badge } from '@/components/ui/goop/badge';
import { ListGroup, ListGroupHeader, ListGroupTitle } from '@/components/ui/goop/list-group';
import { Progress } from '@/components/ui/goop/progress';
import { Properties, PropertyRow } from '@/components/ui/goop/properties';
import { Stat, StatLabel, StatValue } from '@/components/ui/goop/stat';
import {
OverviewGrid,
OverviewGridPair,
OverviewGridStats,
OverviewGridWide,
} from '@/components/goop/patterns/overview-grid';
import { PageBody } from '@/components/goop/patterns/page-body';
function Section({ title, children }: { title: string; children: ReactNode }) {
return (
<ListGroup>
<ListGroupHeader variant="section"><ListGroupTitle>{title}</ListGroupTitle></ListGroupHeader>
{children}
</ListGroup>
);
}
function WeekOverview() {
return (
<PageBody variant="wide">
<OverviewGrid>
<OverviewGridStats aria-label="The week at a glance">
<div>
<StatLabel>Saplings planted</StatLabel>
<Stat><StatValue>222</StatValue><Badge variant="success" stateLabel="Up">+18%</Badge></Stat>
</div>
</OverviewGridStats>
<OverviewGridWide>
<Section title="By day">
<Properties variant="band">
<PropertyRow label="Monday">
<span className="flex grow items-center gap-3">
<Progress value={42} max={49} aria-label="Monday" />
<span className="w-20 shrink-0 text-start text-muted-foreground">42</span>
</span>
</PropertyRow>
</Properties>
</Section>
</OverviewGridWide>
<OverviewGridPair>
<Section title="Sites">…</Section>
<Section title="Recent activity">…</Section>
</OverviewGridPair>
</OverviewGrid>
</PageBody>
);
}- Fits: overview (its recipe).
- Each figure a
divholding a StatLabel over a Stat (its StatValue, a status Badge after it for the change). Each section a ListGroup whoseListGroupHeader variant="section"names it, over its rows: bar rows as aProperties variant="band"of PropertyRows (each value a Progress and its count at the start of one fixed end column, 12 px after the track), or a Timeline, as the collection page's. No Card round a section, and no gap, padding or width round the parts: the grid's own rhythm and the page body's gutters are the page's. - width, padding, gap: add no class for these.
API reference
| Option | Type | What it does |
|---|---|---|
| arrangement? | OverviewGridArrangement | The arrangement: tiles-wide-pair the parts stacked, home-column a centred column of a greeting, quick actions and a feed; Meadow draws card-grid and chart-over-table as tiles-wide-pair. |
| Part | What it is |
|---|---|
| OverviewGridStats | The band of figures |
| OverviewGridWide | One section across the grid's whole width |
| OverviewGridPair | Two sections 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-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.