ListRow
ListRow is the recurring list item: an optional leading slot (a StatusDot
or Avatar), a title with an optional meta line, and a trailing slot (a
timestamp, badge, or actions). It sits flat at rest with a rounded hover tint
when interactive. Every color comes from the host’s tokens. The preview below
is the real component from @nimblebrain/synapse/ui, live.
import { Avatar, Badge, ListRow } from "@nimblebrain/synapse/ui";
<ListRow leading={<Avatar name="Jordan Ratner" />} title="Jordan Ratner" meta="jordan@acme.co · Last touched 2d ago" trailing={<Badge tone="success">Won</Badge>}/>;Interactive rows
Section titled “Interactive rows”Set interactive to add the pointer cursor and hover tint. The row becomes
keyboard-operable. role="button", tabIndex, and Enter / Space synthesize the
click that drives your onClick.
<ListRow title="Priya Nair" interactive onClick={open} />ListRow extends the native HTMLAttributes for a <div> (minus title), so
onClick, className, style, aria-*, and other div attributes pass through.
| Prop | Type | Default |
|---|---|---|
title |
ReactNode (required) |
None |
meta |
ReactNode |
None |
leading |
ReactNode |
None |
trailing |
ReactNode |
None |
interactive |
boolean |
false |
…rest |
HTMLAttributes<HTMLDivElement> |
None |