Read components
The six named components of read.contract: FacePile, CommentCount, DocItemRow, DocCard, DocBlockView and DocDiscussionSlot, and how they nest.

These are the named, reusable components defined in read.contract, the file that draws the Read tab. Together they render a document: its blocks, the rows and cards that point at other documents, and the place where the discussion attaches. The screen components of the same file (DocScreen, DirectoryScreen, AuthorScreen, OpenSiteScreen) are documented as Read tab screens.

The components

Component

What it is

Used by

FacePile

Up to three overlapping 20 point avatars and "+N"

DocCard, DocBlockView

CommentCount

The messages symbol and a number; nothing at zero

DocItemRow, DocCard

DocItemRow

A document as a list row: thumbnail, title, summary, authors, date, chevron

Document, Author profile, DocBlockView

DocCard

A document as a card: cover, title, summary, face pile, date

DocBlockView

DocBlockView

One block of a document, in any of ten kinds

Document

DocDiscussionSlot

The seam where the Discuss package draws under a document

Document

DocBlockView is the largest of them. Its embed and query kinds have their own page: DocBlockView: embed and query blocks.

How they nest

flowchart TD DocScreen --> DocBlockView DocScreen --> DocItemRow DocScreen --> DocDiscussionSlot AuthorScreen --> DocItemRow DocBlockView --> DocCard DocBlockView --> DocItemRow DocBlockView --> FacePile DocCard --> FacePile DocCard --> CommentCount DocItemRow --> CommentCount FacePile --> Avatar DocDiscussionSlot --> DiscussSection

What they have in common

    A document is always shown the same few ways. As a row (DocItemRow), as a card (DocCard) or as an embed card (inside DocBlockView). All three show a title in -exact-headline, a summary in -exact-subheadline grey, people and a date, and all three are one link that pushes the document. See Cards and panels and Lists.

    They are painted, not platform lists. These components live inside the reading column, which is content. DESIGN.md's first principle says to "paint only content: document typography, comment bubbles, avatars", and this is that content. Surfaces use the platform role -exact-secondary-background, so they follow light and dark without a second set of colours. See Leave it unsaid and Light and dark.

    People are faces and names. Rows name their authors; cards and embeds show a face pile. No component here prints an account key. See Names, not identifiers.

    Dates are relative for a week. "now", "5 min. ago", "3 hr. ago", "1 day ago", "2 days ago", then the medium date ("Oct 30, 2026"). The wording follows the React Native app's. See Voice and wording.

    Empty parts disappear. No summary, no summary line; no comments, no count; no image, no thumbnail. Nothing is padded out with placeholders.

Each component takes a testId (or active) prop that exists for tests only and has no visual effect; the component pages leave it out of their prop tables' discussion.

Differences from DESIGN.md

DESIGN.md's component table lists DocRow(title, summary, date) in the shared ui.contract. The built component is DocItemRow(item, testId) in read.contract, and it also shows authors and a comment count. FacePile, CommentCount, DocCard, DocBlockView and DocDiscussionSlot are not in DESIGN.md's table at all: cards and face piles were added later by the work marked pkg:cards in the source.

How it is built

Read: screens and components covers the same file from the code side, Read: blocks to rows and inline Markdown covers how a document becomes the blocks DocBlockView draws, and Read: rows, directory and author pages covers where rows and cards get their data. Source: read.contract L99-L268. The whole toolkit is indexed at Component toolkit.

User stories

This page helps deliver these stories. Each story lists this page in its Trace, so the link holds in both directions (traceability).

Do you like what you are reading? Subscribe to receive updates.

Unsubscribe anytime