<!-- generated by scripts/gen-docs.mjs from docs/system/item.md. Edit the source and rerun. -->
# Item

## Description
Shows one thing in a list as a row: its name, a line about it, and a time or an action at the end.

`import { ItemGroup, Item, ItemMedia, ItemIcon, ItemContent, ItemTitle, ItemDescription, ItemActions } from "@/components/cobalt/ui/item"`, source `registry/cobalt/ui/item.tsx`, status `ready`.
`import { DateTile } from "@/components/cobalt/ui/date-tile"`, source `registry/cobalt/ui/date-tile.tsx`, status `ready`.
Foundation: `hand-rolled`. Traps checked: `trap/link-as-button`, `trap/list-dead-gap`, `trap/touch-hover-flash`, `trap/focus-ring-shape`, `trap/text-measure`, `trap/illustration-announced`, `trap/surface-double-edge`, `trap/numbers-shift`, `trap/empty-value`, `trap/color-only-status`, `trap/loading-layout-shift`.

`trap/link-as-button` is answered by `render`, which makes the whole row one link or one button (Rules). `trap/list-dead-gap` by the 4px card padding, the only gap between rows, which sits outside every row's hit area by design and is narrower than a finger (Limits). `trap/touch-hover-flash` by Tailwind's `(hover: hover)` guard on the row tint (States). `trap/focus-ring-shape` by the base outline, which follows the row's 12px corner and sits in the card's 4px padding, unclipped (States). `trap/text-measure` by the one-line title cut with its whole text in `title` (Limits). `trap/illustration-announced` by `ItemIcon` and `DateTile`, both hidden from screen readers, since the row's `time` carries the date that is read (ARIA). `trap/numbers-shift` by tabular figures on the DateTile's day (Tokens). `trap/empty-value` by a DateTile with no words for a date it cannot read, never "NaN" or "Invalid Date" (States). `trap/surface-double-edge` n/a: the card group draws a fill and no edge. `trap/color-only-status` n/a: the date leaf marks no state; a host that marks today does so in words beside it. `trap/loading-layout-shift` by `pending`, whose skeleton lines take each line's own height (States).

### Foundation
Not applicable: hand-rolled.

| Given by the foundation | Added by the team |
|---|---|
| Not applicable: hand-rolled, with Base UI `useRender` for `render`, and `Intl` for the DateTile's month and day | A row 36px at least, 12px round and 10px in from its sides like a menu row; `ItemGroup variant="card"` puts rows on a card with 4px around and between the rows them, so the 12px rows are concentric with the 16px card (D38); a row rendered as a link or a button tints under the pointer, darkens on press through `pressable`, and while `aria-current` (`true` or `page`) or `aria-pressed` takes the accent's soft fill, `--primary-soft`, the tint a selected table row takes, and keeps it under the pointer, so the current row never looks like a hovered one (the grey hover is written only for rows that are neither); the title on one line with its whole text in `title`; the description cut at 2 lines; `ItemIcon`, a 36px tile, the height of a control; the end slot never shrinks, in small muted tabular figures; `DateTile`, a tear-off calendar leaf for `ItemMedia`: a 48px `--muted` square with a 12px corner (D38), the short month in the locale's own words, never in capitals (D12), in `text-xs` semibold and muted, over the day in `text-lg` semibold tabular figures, the calendar day read from the ISO string in UTC, as `date()` in `registry/cobalt/lib/format.ts` reads it, so the leaf shows the day written in every time zone; `pending` on `Item` for a row still on its first load: the title, the description and the end each hold their line with a skeleton line of a steady width picked from the row's id, the media keeps its box under a round block and the icon tile is a block, and the row is `aria-hidden` and `inert` |

## Examples
Search results on a card, each with its adviser and when it last filed.

Real uses, 0 call sites (`rg -n "<Item\b" app registry --glob '!registry/cobalt/ui/*'`): the part is new. TSA ships its own item file and Atlas draws the row by hand in its docs and its picker (`docs/research/2026-10-17-coverage.md`, section 3). The first source app draws the same date leaf in its week card (`docs/research/2026-10-17-bespoke-sources.md`, section 2.3).

### Example files
| File | Covers | Caption |
|---|---|---|
| `docs/system/examples/item/default.tsx` | default | Search results on a card, each with its adviser and when it last filed |
| `docs/system/examples/item/variant-plain.tsx` | variant=plain | Plain rows on the page, each with an icon tile, for a short list inside a section |
| `docs/system/examples/item/variant-card.tsx` | variant=card | Rows on a card with 4px around and between the rows them, so each row's corner sits inside the card's |
| `docs/system/examples/item/current.tsx` | state:current | Open a booking and its details show under the list, with its row held in the accent's soft fill |
| `docs/system/examples/item/pending.tsx` | state:pending | A list on its first load: each row holds its title, its line and its time with skeleton lines of steady, varied widths |
| `docs/system/examples/item/dates.tsx` | composition:DateTile | A date leaf starts each booking, and the time beside it is what a screen reader reads |
| `docs/system/examples/item/in-card.tsx` | composition:Card | Settings rows in a card, each with a switch at the end that turns it on or off |
| `docs/system/examples/item/event-row.tsx` | composition:SaveToggle | Briefings on a card, with the room's photo and its bookmark at the end of each row |

Example: Search results on a card, each with its adviser and when it last filed (`docs/system/examples/item/default.tsx`)

```tsx
import { useState } from "react";

import {
  Item,
  ItemActions,
  ItemContent,
  ItemDescription,
  ItemGroup,
  ItemTitle,
} from "@/components/cobalt/ui/item";
import { RelativeTime } from "@/components/cobalt/ui/relative-time";

const daysAgo = (days: number) => Date.now() - days * 86_400_000;

export default function Example() {
  const [results] = useState(() => [
    { name: "Harbour Large Cap Core", about: "Harbour Capital Advisors, master fund", filed: daysAgo(2) },
    { name: "Calder Global Equity", about: "Calder & Rowe, feeder fund", filed: daysAgo(14) },
    { name: "Northgate Short Duration", about: "Northgate Investment Management", filed: daysAgo(17) },
  ]);
  return (
    <ItemGroup variant="card" render={<ul aria-label="Funds matching harbour" />} className="max-w-md">
      {results.map((r) => (
        <Item key={r.name} render={<li />}>
          <ItemContent>
            <ItemTitle>{r.name}</ItemTitle>
            <ItemDescription>{r.about}</ItemDescription>
          </ItemContent>
          <ItemActions>
            <RelativeTime value={r.filed} />
          </ItemActions>
        </Item>
      ))}
    </ItemGroup>
  );
}
```

Example: A date leaf starts each booking, and the time beside it is what a screen reader reads (`docs/system/examples/item/dates.tsx`)

```tsx
import { DateTile } from "@/components/cobalt/ui/date-tile";
import { Item, ItemContent, ItemDescription, ItemGroup, ItemMedia, ItemTitle } from "@/components/cobalt/ui/item";

const week = [
  { id: "b1", date: "2026-10-19", at: "2026-10-19T09:30", when: "Monday, 9:30 AM", title: "Amara Okafor, Library corner" },
  { id: "b2", date: "2026-10-21", at: "2026-10-21T14:00", when: "Wednesday, 2:00 PM", title: "Quarterly review, Harbour room" },
  { id: "b3", date: "2026-10-23", at: "2026-10-23T11:00", when: "Friday, 11:00 AM", title: "Due diligence, Boardroom" },
];

export default function Example() {
  return (
    <ItemGroup variant="card" render={<ul aria-label="Bookings this week" />} className="w-full max-w-sm">
      {week.map((b) => (
        <Item key={b.id} render={<li />}>
          <ItemMedia>
            <DateTile date={b.date} />
          </ItemMedia>
          <ItemContent>
            <ItemTitle>{b.title}</ItemTitle>
            <ItemDescription>
              <time dateTime={b.at}>{b.when}</time>
            </ItemDescription>
          </ItemContent>
        </Item>
      ))}
    </ItemGroup>
  );
}
```

Example: Settings rows in a card, each with a switch at the end that turns it on or off (`docs/system/examples/item/in-card.tsx`)

```tsx
import { useState } from "react";

import { Card, CardContent, CardHeader, CardTitle } from "@/components/cobalt/ui/card";
import { Item, ItemActions, ItemContent, ItemDescription, ItemGroup, ItemTitle } from "@/components/cobalt/ui/item";
import { Switch } from "@/components/cobalt/ui/switch";

const settings = [
  { id: "filings", title: "New filings", about: "When a fund you follow files." },
  { id: "late", title: "Late filings", about: "When a fund you follow misses its deadline." },
  { id: "digest", title: "Weekly digest", about: "Every Monday, what changed last week." },
];

export default function Example() {
  const [on, setOn] = useState<Record<string, boolean>>({ filings: true, late: true, digest: false });
  return (
    <Card className="w-full max-w-md">
      <CardHeader>
        <CardTitle>Email me about</CardTitle>
      </CardHeader>
      <CardContent className="-mx-2.5">
        <ItemGroup>
          {settings.map((s) => (
            <Item key={s.id}>
              <ItemContent>
                <ItemTitle>{s.title}</ItemTitle>
                <ItemDescription>{s.about}</ItemDescription>
              </ItemContent>
              <ItemActions>
                <Switch
                  aria-label={s.title}
                  checked={on[s.id] ?? false} onCheckedChange={(v) => setOn((was) => ({ ...was, [s.id]: v }))} />
              </ItemActions>
            </Item>
          ))}
        </ItemGroup>
      </CardContent>
    </Card>
  );
}
```

Example: Briefings on a card, with the room's photo and its bookmark at the end of each row (`docs/system/examples/item/event-row.tsx`)

```tsx
import { toast } from "sonner";

import { MapPinIcon } from "@/components/cobalt/icon";
import { Item, ItemContent, ItemDescription, ItemGroup, ItemMedia, ItemTitle } from "@/components/cobalt/ui/item";
import { SaveToggle } from "@/components/cobalt/ui/save-toggle";
import { useOptimisticToggle } from "@/lib/cobalt/use-optimistic-toggle";

const briefings = [
  {
    id: "e1",
    at: "2026-10-21T14:00",
    when: "Wed, Oct 21, 2:00 PM",
    title: "Quarterly review of the income funds",
    host: "Hosted by Carmen Ruiz",
    room: "Lecture hall, second floor",
    src: "/photos/assembly.jpg",
  },
  {
    id: "e2",
    at: "2026-10-22T10:00",
    when: "Thu, Oct 22, 10:00 AM",
    title: "Form PF changes for mid-size advisers",
    host: "Hosted by Daniel Mercer",
    room: "Auditorium, ground floor",
    src: "/photos/panel.webp",
  },
];

// Stands in for your API call. It answers after 600ms, and fails while the browser is offline or the
// address has ?network=offline.
const request = () =>
  new Promise<void>((resolve, reject) =>
    setTimeout(() => {
      const offline = !navigator.onLine || new URLSearchParams(location.search).get("network") === "offline";
      if (offline) reject(new Error("offline"));
      else resolve();
    }, 600),
  );

function Briefing({ b }: { b: (typeof briefings)[number] }) {
  const saved = useOptimisticToggle(`saved:${b.id}`, false, {
    send: request,
    // Keyed by the item, so a second refusal before the first toast goes says it once.
    onRefused: (on) =>
      toast(on ? `Could not save ${b.title}` : `Could not remove ${b.title} from saved`, {
        id: `saved:${b.id}`,
        description: "Check your connection and try again.",
      }),
  });
  return (
    <Item render={<li />} className="items-start gap-4">
      <ItemContent className="gap-1">
        <time dateTime={b.at} className="text-xs text-muted-foreground tabular-nums">
          {b.when}
        </time>
        <ItemTitle>{b.title}</ItemTitle>
        <ItemDescription>{b.host}</ItemDescription>
        <ItemDescription className="flex items-center gap-1.5">
          <MapPinIcon aria-hidden="true" className="size-3.5 shrink-0" />
          <span className="truncate">{b.room}</span>
        </ItemDescription>
      </ItemContent>
      <ItemMedia>
          <div className="relative size-20 rounded-xl image-outline sm:size-24">
            <img src={b.src} alt="" width={96} height={96} loading="lazy" decoding="async" className="size-full rounded-[inherit] object-cover" />
            <SaveToggle variant="overlay" pressed={saved.on} onPressedChange={saved.flip} label={`Save ${b.title}`} className="end-1 top-1" />
          </div>
        </ItemMedia>
    </Item>
  );
}

export default function Example() {
  return (
    <ItemGroup variant="card" render={<ul aria-label="Briefings this week" />} className="w-full max-w-lg">
      {briefings.map((b) => (
        <Briefing key={b.id} b={b} />
      ))}
    </ItemGroup>
  );
}
```

## Variants

### variant
- `plain`: rows on whatever is behind them, for a short list inside a section or a card. The default. Used at 0 call sites.
- `card`: rows on their own card with 4px around and between the rows them, for a list that is the page's main content. Used at 0 call sites.

Example: Plain rows on the page, each with an icon tile, for a short list inside a section (`docs/system/examples/item/variant-plain.tsx`)

```tsx
import { CalendarIcon, MailIcon, UsersIcon } from "@/components/cobalt/icon";
import { Item, ItemContent, ItemDescription, ItemGroup, ItemIcon, ItemTitle } from "@/components/cobalt/ui/item";

const rows = [
  { icon: <CalendarIcon />, title: "Arrival", about: "Fri, Oct 24 after 3 PM" },
  { icon: <UsersIcon />, title: "Guests", about: "2 adults" },
  { icon: <MailIcon />, title: "Confirmation", about: "Sent to the address on the booking" },
];

export default function Example() {
  return (
    <ItemGroup variant="plain" className="max-w-sm">
      {rows.map((r) => (
        <Item key={r.title}>
          <ItemIcon>{r.icon}</ItemIcon>
          <ItemContent>
            <ItemTitle>{r.title}</ItemTitle>
            <ItemDescription>{r.about}</ItemDescription>
          </ItemContent>
        </Item>
      ))}
    </ItemGroup>
  );
}
```

Example: Rows on a card with 4px around and between the rows them, so each row's corner sits inside the card's (`docs/system/examples/item/variant-card.tsx`)

```tsx
import { Avatar, AvatarFallback, AvatarImage } from "@/components/cobalt/ui/avatar";
import { Item, ItemActions, ItemContent, ItemGroup, ItemMedia, ItemTitle } from "@/components/cobalt/ui/item";

const people = [
  { name: "Sofia Rossi", role: "Owner", photo: "/photos/portrait-1.webp" },
  { name: "Hana Sato", role: "Editor", photo: "/photos/portrait-3.webp" },
  { name: "Amara Okafor", role: "Viewer", photo: "/photos/portrait-4.webp" },
];

export default function Example() {
  return (
    <ItemGroup variant="card" render={<ul aria-label="People with access" />} className="max-w-sm">
      {people.map((p) => (
        <Item key={p.name} render={<li />}>
          <ItemMedia>
            <Avatar decorative>
              <AvatarImage src={p.photo} />
              <AvatarFallback />
            </Avatar>
          </ItemMedia>
          <ItemContent>
            <ItemTitle>{p.name}</ItemTitle>
          </ItemContent>
          <ItemActions>{p.role}</ItemActions>
        </Item>
      ))}
    </ItemGroup>
  );
}
```

## States
| State | Trigger | What the user can do | Shown by, besides color | Checked by |
|---|---|---|---|---|
| static | a row rendered as a `div` or `li` | read it, and use any control at its end | the row's text | test |
| hover | pointer over a row rendered as a link or a button, under `(hover: hover)` | open or select it | the pointer cursor on a link, and the grey fill | by hand |
| pressed | pointer or key down on a link or button row | let go to open it | the fill darkens one step, with nothing moving | by hand |
| current | `aria-current="true"`, `aria-current="page"` or `aria-pressed="true"` on the row | read which row is open | the accent's soft fill (`--primary-soft`), held under the pointer; in an `ItemGroup` the current row's fill is one mark under the rows that slides to the next row made current; the state read by a screen reader | screenshot |
| focus-visible | Tab onto a link or button row | open it with Enter | the 2px outline around the whole row, following its 12px corner | by hand |
| cut | the title is wider than the row leaves it | hover or long-press for the whole title | an ellipsis at the end, and the whole text in `title` | test |
| unreadable date | a DateTile whose `date` is not a date | read the row's `time` | an empty leaf, the same size | test |
| pending | `pending` on `Item`, a row still on its first load | wait | a skeleton line for the title, the description and the end, a block for the media and the icon; hidden from screen readers while the list carries `aria-busy` | test |

Example: Open a booking and its details show under the list, with its row held in the accent's soft fill (`docs/system/examples/item/current.tsx`)

```tsx
import { useState } from "react";

import { DataList, DataListItem, DataListLabel, DataListValue } from "@/components/cobalt/ui/data-list";
import {
  Item,
  ItemActions,
  ItemContent,
  ItemDescription,
  ItemGroup,
  ItemTitle,
} from "@/components/cobalt/ui/item";

const bookings = [
  { id: "BK-4821", guest: "Aleksandra Wiśniewska", stay: "Oct 24 to Oct 27", room: "Double, garden side", total: "$477.00" },
  { id: "BK-4822", guest: "Jo Park", stay: "Oct 25 to Oct 26", room: "Single", total: "$129.00" },
  { id: "BK-4830", guest: "Tomás Okafor", stay: "Nov 2 to Nov 9", room: "Suite", total: "$1,904.00" },
];

export default function Example() {
  const [open, setOpen] = useState("BK-4821");
  const shown = bookings.find((b) => b.id === open);
  return (
    // As wide as it may be, whatever the line under it says, so opening a row never resizes the list.
    <div className="flex w-full max-w-md flex-col gap-4">
      <ItemGroup variant="card">
        {bookings.map((b) => (
          <Item
            key={b.id}
            render={
              <a
                href={`#${b.id}`}
                aria-current={b.id === open ? "true" : undefined}
                onClick={() => setOpen(b.id)}
              />
            }
          >
            <ItemContent>
              <ItemTitle>{b.guest}</ItemTitle>
              <ItemDescription>{b.stay}</ItemDescription>
            </ItemContent>
            <ItemActions>{b.id}</ItemActions>
          </Item>
        ))}
      </ItemGroup>
      {shown && (
        // The same two facts for every booking, so opening another row moves nothing below.
        <DataList id={shown.id} aria-label={`Booking ${shown.id}`} aria-live="polite">
          <DataListItem>
            <DataListLabel>Room</DataListLabel>
            <DataListValue>{shown.room}</DataListValue>
          </DataListItem>
          <DataListItem>
            <DataListLabel>Total</DataListLabel>
            <DataListValue>{shown.total}</DataListValue>
          </DataListItem>
        </DataList>
      )}
    </div>
  );
}
```

Example: A list on its first load: each row holds its title, its line and its time with skeleton lines of steady, varied widths (`docs/system/examples/item/pending.tsx`)

```tsx
import { useEffect, useState } from "react";

import { Item, ItemActions, ItemContent, ItemDescription, ItemGroup, ItemTitle } from "@/components/cobalt/ui/item";

type Fund = { name: string; about: string; filed: string };

// Stands in for your API call. It answers after 1.5 seconds.
const readFunds = () =>
  new Promise<Fund[]>((resolve) =>
    setTimeout(
      () =>
        resolve([
          { name: "Harbour Large Cap Core", about: "Harbour Capital, master fund", filed: "2 days ago" },
          { name: "Calder Global Equity", about: "Calder & Rowe, feeder fund", filed: "2 weeks ago" },
          { name: "Northgate Short Duration", about: "Northgate, bond fund", filed: "3 weeks ago" },
        ]),
      1500,
    ),
  );

export default function Example() {
  const [funds, setFunds] = useState<Fund[] | null>(null);
  useEffect(() => {
    void readFunds().then(setFunds);
  }, []);
  // Three rows hold the list's place: a recent list's usual length, never a full page of bars.
  const rows = funds ?? [null, null, null];
  return (
    <ItemGroup variant="card" render={<ul aria-label="Recently filed funds" aria-busy={funds === null} />} className="w-full max-w-md">
      {rows.map((fund, i) => (
        <Item key={fund?.name ?? i} pending={fund === null} render={<li />}>
          <ItemContent>
            <ItemTitle>{fund?.name}</ItemTitle>
            <ItemDescription>{fund?.about}</ItemDescription>
          </ItemContent>
          <ItemActions>{fund?.filed}</ItemActions>
        </Item>
      ))}
    </ItemGroup>
  );
}
```

### State precedence
- Hover and current: current wins. The current row keeps the accent's soft fill under the pointer, and the grey hover shows only on the other rows, so two tinted rows never look alike.
- Focus-visible and hover or current: both show. The outline is drawn outside the fill.
- Cut and every other state: both show. The ellipsis is on the title and the fill and outline on the row.
- Unreadable date and every other state: both show. The empty leaf keeps its size, so the row does not move.
- Static and hover: Not applicable: only a link or button row takes hover.
- Pending and hover, current or focus-visible: pending wins. A pending row is `inert`, so it takes no pointer, focus or press.

### Motion
| Trigger | Kind | Preset | Properties | Reduced motion |
|---|---|---|---|---|
| another row of an ItemGroup becomes current | announce | `duration-settle ease-settle` (`--t-settle`, 300ms, on `--curve-settle`), through `useIndicator`, as the sidebar's and the settings list's pills; until the page's script runs the row draws its own fill; measured at 1440, the first booking to the third, the mark's top goes 4, 36, 74, 98, 110, 116, 118, 119, 120px at 33ms steps to the row at 120px (`.design-system/evidence/item/current-mark.json`) | transform (translateY) and height of the mark | the mark jumps; the fill shows at once |
| pointer over and out, and press, on a link or button row | input | `pressable`, `--t-press` on `--curve` | background-color, box-shadow (the pressed tint) | the same colour change; there is no movement to drop |

## Props

<!-- Props generated from registry/cobalt/ui/item.tsx, registry/cobalt/ui/date-tile.tsx with TypeScript by scripts/props-table.mjs -->
### Item

| Prop | Type | Default | Purpose |
|---|---|---|---|
| `pending?` | `boolean` | `false` |  |

Also accepts every native `<div>` attribute; from Base UI: `render`.

### ItemGroup

| Prop | Type | Default | Purpose |
|---|---|---|---|
| `variant?` | `"card" \| "plain"` | `"plain"` | `plain` rows on whatever is behind them; `card` rows on their own card with 4px around and between the rows them. |

Also accepts every native `<div>` attribute; from Base UI: `render`.

### ItemMedia

No props of its own.

Also accepts every native `<div>` attribute.

### ItemIcon

No props of its own.

Also accepts every native `<div>` attribute.

### ItemContent

No props of its own.

Also accepts every native `<div>` attribute.

### ItemTitle

No props of its own.

Also accepts every native `<div>` attribute.

### ItemDescription

No props of its own.

Also accepts every native `<div>` attribute.

### ItemActions

No props of its own.

Also accepts every native `<div>` attribute.

### DateTile

| Prop | Type | Default | Purpose |
|---|---|---|---|
| `date` | `string` |  |  |
| `className?` | `string` |  |  |
| `locale?` | `string` | `"en-US"` |  |

`variant` on `ItemGroup` is `plain` or `card`. `pending` on `Item` holds each line of a row still on its first load. `render` on `ItemGroup` and `Item` swaps the element, such as a `ul` and `li` for a counted list, or an `a` for a row that opens something. Every other part takes its native `div` attributes. `DateTile` takes `date`, an ISO date such as "2026-10-21" or a datetime, whose calendar day is shown, and `locale`, which sets the month's words and the digits, "en-US" by default. `className` is for placement.

## Usage

### When to use
- A list of things a person scans by name: search results, members, recent bookings, followed funds.
- A list of settings, each with a switch or a button at its end.
- A list of things on days a person plans around, such as bookings, events or deadlines, with a `DateTile` in `ItemMedia` so the eye finds a day.

### When not to use
- The things share several columns of figures a person compares. Use Table instead, or DataTable past 50 rows.
- The list is a menu of commands that opens from a button. Use DropdownMenu instead.
- The list is facts about one thing. Use DataList instead.
- A date sits in a table cell or a sentence. Use the `date()` formatter from `registry/cobalt/lib/format.ts` instead of a DateTile, and RelativeTime for a time relative to now.

### Rules
- `rule/item-whole-row-is-one-target`: When a row opens or selects something, render the `Item` as that link or button through `render`, instead of an `onClick` on a `div` or a link wrapped around the row, because a `div` with a handler has no role and no key handling, and a link around a row nests a block in an inline element. Evidence: principle wcag: 2.1.1 Keyboard, the row is the element the keyboard reaches; principle platform: one interactive element per action. Check: test `item.test.tsx` renders a link row as one anchor; lint trap/link-as-button (scripts/check-system.mjs).
  - Don't: `<Item onClick={() => open(b.id)}>...</Item>`
  - Do: `<Item render={<a href={`/bookings/${b.id}`} />}>...</Item>`
- `rule/item-no-control-in-link`: When a row has its own control at the end, such as a `Switch` or a `Button`, keep the row a plain `div` or `li` instead of rendering it as a link, because a button inside a link is two actions in one place and the browser hands the click to one of them unpredictably. Evidence: principle wcag: 4.1.2 Name, role, value, nested interactive content has no reliable role; single use docs/system/examples/item/in-card.tsx:24-30. Check: review of every `Item` with `render` that holds a control.
  - Don't: `<Item render={<a href="/funds/harbour" />}>...<ItemActions><Button>Follow</Button></ItemActions></Item>`
  - Do: `<Item>...<ItemActions><Button variant="secondary">Follow</Button></ItemActions></Item>`
- `rule/item-list-semantics`: When the rows are a list a screen reader should count, render the group as a `ul` and each row as an `li` through `render`, and name the list with `aria-label`, because a stack of `div` rows is read as unrelated text with no count. Evidence: principle wcag: 1.3.1 Info and relationships, a list is marked as a list. Check: test `item.test.tsx` renders a `ul` with `li` rows.
  - Don't: `<ItemGroup>{rows.map((r) => <Item key={r.id}>...</Item>)}</ItemGroup>`
  - Do: `<ItemGroup render={<ul aria-label="Funds matching harbour" />}>{rows.map((r) => <Item key={r.id} render={<li />}>...</Item>)}</ItemGroup>`
- `rule/item-current-marks-open-row`: When a row's details are open beside or under the list, set `aria-current="true"` on that row, because the accent's soft fill shows which row is open, apart from the grey a hovered row takes, and the attribute says it to a screen reader. Evidence: principle wcag: 4.1.2 Name, role, value; single use docs/system/examples/item/current.tsx:34. Check: review.
  - Don't: `<Item className={open ? "bg-muted" : ""} render={<a href={href} />}>`
  - Do: `<Item render={<a href={href} aria-current={open ? "true" : undefined} />}>`
- `rule/date-tile-time-beside-it`: When a row shows a `DateTile`, put the date in a `time` element with `dateTime` in the same row, such as "Wednesday, 2:00 PM", instead of the leaf alone, because the leaf is hidden from screen readers and shows neither the weekday nor the time. Evidence: principle wcag: 1.3.1 Info and relationships, the date a screen reader hears is in the text; single use `docs/system/examples/item/dates.tsx:23`. Check: test `date-tile.test.tsx` renders the leaf hidden; review of every row that holds one.
  - Don't: `<ItemMedia><DateTile date={b.date} /></ItemMedia><ItemContent><ItemTitle>{b.title}</ItemTitle></ItemContent>`
  - Do: `<ItemMedia><DateTile date={b.date} /></ItemMedia><ItemContent><ItemTitle>{b.title}</ItemTitle><ItemDescription><time dateTime={b.at}>{b.when}</time></ItemDescription></ItemContent>`

### Content
- `rule/item-title-is-the-name`: When writing `ItemTitle`, put the thing's own name, such as the fund or the guest, and put what changed in `ItemDescription`, because the title is cut to one line and the name is what a person scans for. Evidence: principle heuristic: recognition rather than recall; app 2/2 source apps lead a row with the name, docs/research/2026-10-17-coverage.md section 3. Check: review.
  - Don't: `<ItemTitle>New 13F filing from Harbour Large Cap Core</ItemTitle>`
  - Do: `<ItemTitle>Harbour Large Cap Core</ItemTitle><ItemDescription>Filed a 13F</ItemDescription>`
- `rule/date-tile-no-capitals`: When styling the month, keep the locale's own abbreviation, such as "Oct", instead of capitalising it with a text-transform class, because the system writes nothing in capitals and a capitalised month reads louder than the day it labels. Evidence: person D12; person D11. Check: test `date-tile.test.tsx` renders no text-transform class.
  - Don't: a month restyled into capitals through `className`
  - Do: `<DateTile date={d} />`

### Anti-slop
- `rule/item-pending-rows-few`: When a list loads for the first time, render as many `pending` rows as the list usually holds on screen, 3 to 10, instead of a fixed page of 20 bars, because bars past the fold or past the list's usual length promise rows that never come, and the list then shrinks under the person. Evidence: person D37; measured Fund Census drawing 10 bone rows in a 561px body and leaving 161px blank, docs/research/2026-10-17-fund-census-states.md section 2. Check: review.
  - Don't: `{Array.from({ length: 20 }, (_, i) => <Item key={i} pending />)}`
  - Do: `{(funds ?? [null, null, null]).map((fund, i) => <Item key={fund?.id ?? i} pending={!fund}>...</Item>)}`
- `rule/item-one-end-thing`: When filling `ItemActions`, put 1 piece of meta or 1 action there, such as a time or a Follow button, instead of a time, a badge and two buttons, because the end slot never shrinks and every extra piece takes width from the title. Evidence: measured the title cut to 113px beside a 92px Follow button and a 40px avatar in a 288px column at 320, docs/system/stress/item.tsx; principle heuristic: aesthetic and minimalist design. Check: review.
  - Don't: `<ItemActions><Badge>New</Badge><RelativeTime value={at} /><Button>Edit</Button><Button>Delete</Button></ItemActions>`
  - Do: `<ItemActions><RelativeTime value={at} /></ItemActions>`
- `rule/date-tile-not-a-calendar`: When a page needs a month at a glance with days marked, use Calendar instead of a grid of `DateTile`, because 30 leaves are 30 pictures with no weekday columns and no keyboard path between them. Evidence: principle heuristic: match between system and the real world, a month is read as a grid with weekday columns. Check: review.
  - Don't: `{days.map((d) => <DateTile key={d} date={d} />)}`
  - Do: `<Calendar value={day} onValueChange={setDay} />`

### Limits
- `rule/item-title-length`: When titles run past 40 characters, such as a fund's full legal name, put the short name in `ItemTitle` and the rest in `ItemDescription` instead, because the title is one line and at 320 a row with an end action leaves it 113px, about 15 characters. Evidence: measured titles cut at 196px (390) and 113px (320) beside a Follow button, and at 126px (320) beside a date, docs/system/stress/item.tsx. Check: probe docs/system/stress/item.tsx on the break-ui harness at 320.
  - Don't: `<ItemTitle>Aleksandra Wiśniewska-Kowalczyk Global Opportunities Long/Short Equity Fund LP</ItemTitle>`
  - Do: `<ItemTitle>Wiśniewska-Kowalczyk Global Opportunities</ItemTitle><ItemDescription>Long/Short Equity Fund LP</ItemDescription>`

## Accessibility
Rests on a `div`, or on the `a`, `button`, `ul` and `li` the host passes through `render`. A DateTile is a `span` hidden from screen readers and never focusable.

### Keyboard
| Key | Where focus is | Effect | Focus after | Checked by |
|---|---|---|---|---|
| Tab | before a link or button row | focuses the row and shows the outline around it | the row | by hand |
| Enter | a link or button row | opens or selects it | the destination, or stays on the row for a button | by hand |
| Space | a button row | selects it | stays on the row | by hand |
| Tab | before a static row | reaches the control at its end, if any | that control | by hand |

### ARIA
| Part | Role | Accessible name from | States and properties | Announced | Checked by |
|---|---|---|---|---|---|
| group | none, or list as a `ul` | `aria-label` from the host | none | the list and its count when it is a `ul` | test |
| row, static | none, or listitem as an `li` | its text | none | its text in order | test |
| row, link | link | its text, title then description then meta | `aria-current` when open | the text and "link", then "current" | by hand |
| row, button | button | its text | `aria-pressed` when selected | the text and "button", then "pressed" | by hand |
| icon tile | none, `aria-hidden` | none | none | nothing | test |
| date leaf | none, `aria-hidden` | none | none | nothing; the row's `time` is read | test |

## Tokens
| Part | State | Token |
|---|---|---|
| group, card | all | `--card`, `--r-2xl` |
| row | all | `--r-xl`, `--foreground`, `--control` |
| row | hover | `--muted`, `--t-press`, `--curve` |
| row | current, pressed | `--primary-soft` |
| row | press | `--hover` |
| row | focus-visible | `--ring`, `--line-focus`, `--focus-offset` |
| description, actions | all | `--muted-foreground` |
| icon tile | all | `--muted`, `--muted-foreground`, `--r-lg`, `--control` |
| date leaf | all | `--muted`, `--r-xl` |
| date leaf month | all | `--muted-foreground`, `--type-xs` |
| date leaf day | all | `--foreground`, `--type-lg`, tabular figures |

The date leaf is 48px with a short month and at most two digits; a locale whose short month is long, such as "sept." in French, fits it (`docs/system/stress/date-tile.tsx`).

## Related
- Table: things compared across columns of figures.
- DataList: facts about one thing.
- DropdownMenu: a list of commands from a button.
- Avatar: the usual `ItemMedia` for a person.
- RelativeTime: the usual meta at a row's end.
- Calendar: a month to pick a day from, where a grid of date leaves would not do.
- DataTable: lists records with the same fields, as many as a server holds.
- Timeline: events in order of time, read and not opened.
- MediaTile: things chosen by their photo, laid in a grid.
- MemberList: the people who can see something shared, their roles and the invitations still open.
