Integrated ResearchPicasso
Components

List card

A row in a list of things a person can open — a badge, a title and a meta line, with an illustration cropped into the trailing corner.

{/* Generated by scripts/build-component-docs.mjs — do not edit. The source is the component folder: guidance.json, the doc block and the props. Change those. */}

A row in a list of things a person can open — a badge, a title and a meta line, with an illustration cropped into the trailing corner.

Import

import { ListCard } from "@ir/ui";

Watch out

  • The card is the control, and that is what licenses the motion. It is the one place a picture moves inside the console (see "List cards" in docs/foundations/motion.md). The picture listens to nothing: the card owns the hover and passes active, so a drawing can never answer a pointer the card is not answering.

Props

PropTypeRequiredWhat it does
titleReact.ReactNodeyesOne line. Sentence case, no full stop. Truncates rather than wraps.
metaReact.ReactNodeThe qualifying line — what it is, how many, when. Truncates.
badgeReact.ReactNodeA short kind or status. Omit it rather than inventing one.
illustrationIllustrationNameyesWhich drawing. Pick it for what it shows, not for how it moves.
asChildbooleanHand the row to a router link. Pass the link as the only child and leave it empty — the card's own content is slotted inside it: <ListCard asChild …><Link href="/fleets/sydney" /></ListCard>.

Do and don't

Leave interactive alone and let the card pass active.

Don't — Let the illustration answer the pointer itself inside a card.

Two things listening to one pointer means the picture can play while the card is not highlighted, and a picture that responds reads as a control. The card is what opens; the picture answers the card.

Let the 120ms dwell do its job — a pointer crossing a list on its way somewhere else moves nothing.

Don't — Start the drawing the instant the pointer touches the row.

A list is mostly crossed, not read. Firing on entry turns a scroll past six rows into six animations, which is the flicker that makes people turn motion off.

Change the border and leave the card where it is.

Don't — Add a shadow or a raise on hover.

Rows sit a 2-gap apart, so a hover shadow lands on the card below — a visual artefact signalling something the border already says. Measured on Claude's own cards: border and background only, no movement at all. Not drawn: the wrong side needs a class the component refuses (a shadow, a wrapping title), and a mock-up would be a picture of something the library will not let you build.

One line, truncated, with the full name available where the card opens.

Don't — Let a long title wrap and push the row taller than its neighbours.

A list is read by scanning down one edge. A row that grows breaks the rhythm the scan depends on, and the names that overflow are usually the ones that differ only at the end. Not drawn: the wrong side needs a class the component refuses (a shadow, a wrapping title), and a mock-up would be a picture of something the library will not let you build.

Name the kind of thing this is — "Alert rule", "Fleet", "Report" — and put the count in the meta line.

Don't — Put status prose in the badge — "3 sites need attention".

The badge is how someone tells one row's type from another at a glance. A sentence there competes with the title and stops the column reading as a column.

Choose it for what it depicts — a fleet of endpoints is fleet-health, a dependency run is call-readiness.

Don't — Choose an illustration because you like how it moves.

The mechanic follows the subject, not the other way round. A list where the picture does not match the thing teaches people the pictures are decoration, and then they stop looking at them.

Leave the art aria-hidden — the card already has one accessible name.

Don't — Give the illustration its own label as well as the title.

A screen reader reading a row twice, once as a picture and once as a title, doubles the length of every list. The picture says nothing the title does not.

Accessibility

  • One target and one accessible name: the anchor, named by its title and meta line.
  • The art is aria-hidden and the drawing takes label={null}. Nothing is said only by the picture.
  • Focus turns the picture on immediately — there is nothing to settle, because arriving by keyboard is already deliberate.
  • The focus ring is the system's: 2px ring/focused with a 2px offset on the app surface, so it reads against both the card and the page.
  • Under prefers-reduced-motion the rise and the colour transition are both off; the drawing holds at rest and still says what it means.

Where it is drawn

Figma — structure from figma, measurements from code.

Open in Storybook

On this page