Theme
Install with your agentnpx shadcn@4.23.1 add https://registry.goop.so/g/<link>/trail-card-grid.json --yes

Card grid

Pro

A grid that sets several cards out in even columns that wrap with its width, for projects, files or features, for React and Tailwind CSS. Part of Goop Pro.

Add and take away cards (empty shows its empty state) and turn loading on to see its placeholders; narrow the window to see the columns change. The folders are ours; nothing loads.

When to use

  • A grid that sets several cards out in even columns that wrap with its width, for projects, files or features.

When not to use

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 Card 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.

Terminal
npx shadcn@4.23.1 add https://registry.goop.so/g/<link>/trail-card-grid.json --yes
PROMPT
Add the Goop Card grid to this project. The install steps are at https://goop.so/docs/install.md

Usage

TSX
import { CardGrid, CardGridItem } from '@/components/ui/goop/card-grid';
import { Card, CardText, CardTitle, CardDescription } from '@/components/ui/goop/card';

<CardGrid aria-label="Folders">
  <CardGridItem>
    <Card>
      <CardText>
        <CardTitle>Field notes</CardTitle>
        <CardDescription>Interviews from the last visit.</CardDescription>
      </CardText>
    </Card>
  </CardGridItem>
  <CardGridItem>
    <Card>
      <CardText>
        <CardTitle>Archive</CardTitle>
      </CardText>
    </Card>
  </CardGridItem>
</CardGrid>
  • Fits: list, states (their recipes); list: collection (media: primary).
  • height, width, background: add no class for these.

API reference

Options
OptionTypeWhat it does
loading?boolean = falseShow loading cards in place of the items, and mark the grid busy.
placeholders?number = 3How many loading cards to show while loading.
empty?CardGridEmptyThe words shown, across the grid, when it holds no item and is not loading.
  • Types: CardGridEmpty = { title: string; description?: string }
Parts
PartWhat it is
CardGridItemOne place in the grid
  • Class recipes (cva): cardGridItemVariants
  • data-slot values (to select a part by): card-grid, card-grid-empty, card-grid-item, card-grid-skeleton

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.

goop.so/themes/trail/components/card-grid.md · the page as Markdown
Theme
Install with your agentnpx shadcn@4.23.1 add https://registry.goop.so/g/<link>/trail-card-grid.json --yes

Where would you like to start?

Free · now

The Goop plugin

A design system for your AI coding agent, so screen ten matches screen one.

/plugin marketplace add goop-so/skillsthen /plugin install goop@goopCodex, Cursor, ChatGPT, the Claude app and more: Connect Goop
FreePro

The components

Every part live, with its props, its keys and what an agent sees. Whole page and app templates, working with sample data.