npx shadcn@4.23.1 add @goop/meadow-card-listCard list
FreeA short list of rows inside an outline card, for what is recent, due or shared, for React and Tailwind CSS. Free, MIT.
What an agent sees
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>
);
}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.
npx shadcn@4.23.1 add @goop/meadow-card-listAdd the Goop Card list to this project. The install steps are at https://goop.so/docs/install.mdUsage
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 paddeddiv: it draws its own divider and insets. Give it anaria-label(the card's title) and itsemptywords. 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
| Option | Type | What it does |
|---|---|---|
| empty? | CardListEmpty | The 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
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.