Theme
Install with your agentnpx shadcn@4.23.1 add @goop/trail-card-list

Card list

Free

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

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.

Terminal
npx shadcn@4.23.1 add @goop/trail-card-list
PROMPT
Add the Goop Card list to this project. The install steps are at https://goop.so/docs/install.md

Usage

TSX
import { CardList } from '@/components/ui/goop/card-list';
import { Card, CardHeader, CardTitle } from '@/components/ui/goop/card';
import { Item, ItemOverlay, ItemContent, ItemTitle, ItemDescription, ItemActions } from '@/components/ui/goop/item';

<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' }}>
    <Item asChild>
      <li>
        <ItemOverlay asChild>
          <a href="/visits/harbour" aria-label="Open Harbour visit" />
        </ItemOverlay>
        <ItemContent>
          <ItemTitle>Harbour visit</ItemTitle>
          <ItemDescription>Notes due Thursday</ItemDescription>
        </ItemContent>
        <ItemActions>3 notes</ItemActions>
      </li>
    </Item>
  </CardList>
</Card>
  • Fits: overview, record (their recipes).
  • 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 takes the card's inset by itself. Each row is an Item asChild round an li, its ItemContent (ItemTitle, ItemDescription) and its ItemActions; a whole row as a link, an ItemOverlay asChild round the caller's a. Give it an aria-label (the card's title) and its empty words. A settings card's rows are Fields, not Items: no CardList there. Over about eight rows it is a page's list, not a card's.
  • width, corner, background, shadow: add no class for these.

API reference

Options
OptionTypeWhat it does
empty?CardListEmptyThe words shown in one row when the list holds no row.
  • Types: CardListEmpty = { title: string; description?: string; action?: ReactNode }
  • data-slot values (to select a part by): card-list, card-list-empty

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-list.md · the page as Markdown
Theme
Install with your agentnpx shadcn@4.23.1 add @goop/trail-card-list

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.