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

# Card list

A short list of rows inside an outline card, for what is recent, due or shared, for React and Tailwind CSS. Free, MIT.

Free. Its export: `CardList`.

## Try it

Open a folder (a press is counted), take the rows away to see the empty row and make the first folder from its action, or put a line of words above the rows; Tab walks the rows in order.

The folders are ours and nothing opens: a press is only counted.

## When to use

- A short list of rows inside an outline card, for what is recent, due or shared.

## When not to use

- For a long list use a page's list or a Table.

## 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 list on every screen instead of drawing a new one: the same height, the same focus ring, the same spacing.

```sh
npx shadcn@4.23.1 add @goop/meadow-card-list
```

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

## Usage

```tsx
import { Card, CardHeader, CardText, CardTitle, CardDescription } from '@/components/ui/goop/card';
import { CardList } from '@/components/ui/goop/card-list';

function DueThisWeek() {
  return (
    <Card variant="outline">
      <CardHeader>
        <CardTitle asChild>
          <h3>Due this week</h3>
        </CardTitle>
      </CardHeader>
      <CardList aria-label="Due this week" empty={{ title: 'Nothing due this week' }}>
        <li>
          <CardText>
            <CardTitle>Harbour visit</CardTitle>
            <CardDescription>Notes due Thursday</CardDescription>
          </CardText>
        </li>
      </CardList>
    </Card>
  );
}
```

- Fits: states (its recipe).
- Put it straight in a `Card variant="outline"`, after its CardHeader (and a CardContent, when the card has words of its own), never in a CardContent or a padded `div`: it draws its own divider and insets. Give it an `aria-label` (the card's title) and its `empty` words. Over about eight rows it is a page's list, not a card's.
- width, padding, gap, corner, border, background, text, motion: add no class for these.

## API reference

### Options

- `empty?: CardListEmpty` — The words shown in one row when the list holds no row.

- Types: CardListEmpty = { title: string; description?: string; action?: ReactNode }

## Motion

- The part sets its own motion: add no transition or animation of your own.

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

- [Table](/themes/meadow/components/table): A table of records compared across columns.
- [Card](/themes/meadow/components/card): A framed surface that holds one piece of content, a list of rows or a section's words.
- [Citation](/themes/meadow/components/citation): A source's small numbered chip inside an AI answer's words, right after the claim it backs.
- [Color swatch](/themes/meadow/components/color-swatch): One colour pill, to pick a colour from a row of them or to show one on a menu's trigger.
