Subject row

A row about an item and the member on its other side: the item's photo with their avatar on its corner, then three lines. Who, small, with the time at the line's end; the item, in medium; and one quiet line of where it stands. A thread in the inbox and an order in Orders are this row, so the two read alike. The row brings no box of its own: the caller wraps it in a link's Item or an Accordion trigger and supplies the words.

Examples

In the inbox

An unread thread counts its messages at the end of the last line. A sold item says so on its photo, which steps back. A thread about no item shows the member's avatar alone.

In Orders

The same row as an accordion's trigger. Where the order stands takes its state's colour; what it is worth stays quiet. A bundle is named by its primary item with how many more, as its thread is.

DarkInspect

Loading

SubjectRowMediaSkeleton and SubjectRowContentSkeleton hold the row's height until it arrives.

DarkInspect

Anatomy

<Item render={<Link href={href} />} size="lg">
  <SubjectRowMedia
    badge="Sold"
    peer={{ avatarUrl, username: "ana" }}
    photo={{ alt: "Vintage denim jacket", src }}
  />
  <SubjectRowContent>
    <SubjectRowByline end={<TimeAgo date={at} />}>
      <UserName size="2xs" username="ana" />
    </SubjectRowByline>
    <SubjectRowTitle>Vintage denim jacket</SubjectRowTitle>
    <SubjectRowLine end={<NotificationCount count={2} />}>
      Would you take €70 for it?
    </SubjectRowLine>
  </SubjectRowContent>
</Item>
  • SubjectRowMedia is the 4:5 photo with the avatar on its bottom corner. badge takes the top corner, and with no photo it shows the avatar alone. Nothing overlays it: while a row's link loads, its one spinner takes the line's end, where the unread count sits.
  • SubjectRowContent stacks the lines and sets them regular, so a trigger that sets its own weight does not change them.
  • SubjectRowByline is who, with end (the time, a star, a muted bell) at the line's end.
  • SubjectRowTitle is the item, one line, medium.
  • SubjectRowLine is where it stands, on up to two lines, with end (an unread count, or the spinner while the row's link loads) beside it.