# The inbox screen

An inbox screen puts a list of conversations or documents beside the one that is open: the list in a 24rem column, the thread in the rest, each scrolling on its own, with the composer under the thread and outside its scroll. Below 1024px an open thread covers the list and its subject becomes the page's title, with the way back above it.

Checked 2 December 2026. By Bohuslav Poláček. https://meadowstack.com/patterns/inbox/

*The inbox screen's slots in the kit, read from the repository when the site was built.*

From `packages/kit/src/components/screen.tsx` in the Meadowstack repository:

```ts
export type InboxScreenProps = Base & {
  archetype: "inbox";
  /** The list, with the next step on each row. */
  list: ReactNode;
  /** The composer under the thread. */
  composer?: ReactNode;
  itemOpen?: boolean;
  /** The thread or the document. */
  children: ReactNode;
};
```

## Anatomy

- **Header** (`header`): the mailbox's name. Below 1024px, while a thread is open, Foldline swaps it: the thread's subject becomes the title and a ghost "Back to mail" button the eyebrow, so the screen keeps one h1.
- **List** (`list`, required): the threads, with the next step on each row. Riverside's rows carry a face, the subject, the channel, the booking and who has it; Foldline's the job's number and stage, and its unread rows are bold with a dot and the word for screen readers.
- **Thread** (`children`): the conversation or the document that is open.
- **Composer** (`composer`): the reply, the kit's `Composer` with the send button inside. At Foldline Cmd/Ctrl+Enter sends, because mail goes out for good and a stray Enter must not send half a sentence; a template fills the box and never sends.
- **itemOpen**: true while an open thread covers the list on a phone.

## Width, scroll and how a record opens

The screen runs full width. The list column is 24rem (384px) from 1024px, 8px from the thread, and each scrolls on its own while the page never does. The composer sits under the thread, outside its scroll, so the reply stays in reach however long the thread grows. A record opens in the thread (decision 0001): the open item is the thread itself, beside the list.

Under 1024px one pane shows at a time: the list, or with `itemOpen` the thread, its subject as the title and the way back above it. On a screen with room the inbox arrives with a thread already open (`shared/preselect.tsx`). Foldline opens the first unread enquiry without a job, else the first unread, else the first thread, and opening a thread reads it, so the open one never shows as unread. A phone opens on the list.

## One type for mail, chat and a handbook

Four example apps use the type, each for a different job:

- **Foldline's mail**: the print shop's shared mailbox, where every thread belongs to its job. Filters: Inbox, Unread, No job, Archive.
- **Riverside's messages**: everything members write to the club, by e-mail, the web form or SMS, in one shared inbox at the reception; the type's sample in the runtime audit.
- **Juniper's handbook**: the page tree as the list and the page as the document, with a picker above the page on a phone.
- **Brightpath's chat**: the channels as the list; on a phone the top bar's step back returns to them.

What they share is the shape: something to pick on the left, the picked thing on the right, and the place to write under it.

## The rules and where they are enforced

| Rule | Where it is enforced |
| --- | --- |
| A list beside the thread, and no side panel | the type: `list` is required, and there is no `peek` slot |
| One h1, also while a thread covers the list | `one-h1` in the runtime audit (`docs/audit.md`) |
| On a phone the list starts in the upper half while no thread covers it | `control-rows` at 390 × 844 |
| Two panes scroll on their own, the page never, no scroll inside a scroll | `page-scroll` and `nested-scroll`; Riverside's messages are the type's sample in `e2e/screens.spec.ts` |
| Writing goes through the kit's composer | `bare-control` blocks an app's own `textarea` (`scripts/check-markup.mjs`) |
| No single-character shortcuts | the root `AGENTS.md` (WCAG 2.1.4) |

## What AI coding tools build instead

- **A chat page that scrolls as a whole.** The reply box scrolls away with the history, or a fixed box covers the last message. Here the composer sits outside the thread's scroll.
- **An empty pane on arrival.** "Select a conversation" is a wasted first screen; the inbox arrives with a thread open.
- **Two squeezed panes on a phone.** Here the open thread covers the list and takes the title.
- **Unread by colour alone.** Bold, a dot and a word for screen readers.
- **A textarea above a row of buttons.** The manifest lists exactly that, with "a hand-built chat input", as what `Composer` replaces.

## Screens of this type

- [Shared inbox](https://meadowstack.com/screens/shared-inbox/): Riverside's messages at the reception, in the [Riverside example app](https://meadowstack.com/examples/sports-club-court-bookings/).
- A queue of documents that end in a decision rather than a reply is a [work queue](https://meadowstack.com/patterns/work-queue/): Kestrel's [document inbox](https://meadowstack.com/screens/document-inbox/).
- Writing beside a record rather than in a conversation: the [record side panel](https://meadowstack.com/patterns/record-side-panel/) and its history.

## Example apps with an inbox

*Which example apps render an inbox, and the record flows each one uses.*

| Example app | Modules | Side panel first | Decision card | History |
| --- | --- | --- | --- | --- |
| [An app for a packaging and print company](https://meadowstack.com/examples/packaging-print-production/) | 5 | Yes | Yes | Yes |
| [An app for a studio or agency](https://meadowstack.com/examples/agency-capacity-planning/) | 5 | Yes | Yes | Yes |
| [An app for a sports club](https://meadowstack.com/examples/sports-club-court-bookings/) | 5 | Yes | Yes | Yes |
| [An app for restaurants and venues](https://meadowstack.com/examples/restaurant-staff-rota/) | 5 | Yes | Yes | Yes |

Read from the demo's source when the site was built: 4 of 9 example apps render a <Screen archetype="inbox">. Side panel first means RecordPeek, the decision card ApprovalPanel, the history AuditTimeline.

## How Foldline's mail fills the slots

*Foldline's mail: a header that becomes the thread's subject on a phone, the list, itemOpen while a thread covers it, the reply as the composer, and what shows when no thread is open.*

From `apps/demo/src/modules/print/pages/mail.tsx` in the Meadowstack repository:

```tsx
  header={header}
  list={list}
  itemOpen={covering}
  composer={
    openThread ? (
      <ThreadReply thread={openThread} initialTemplate={params.get("sablona")} onChange={changeThread} />
    ) : undefined
  }
>
  {wide && openId ? <PreselectParam name="vlakno" value={preselected?.id} /> : null}
  {openId ? (
    <AsyncState
      resource={thread.resource}
      onRetry={thread.reload}
      loading={<ThreadSkeleton />}
      isEmpty={(item) => !item}
      empty={null}
    >
      {(item) =>
        item ? <ThreadView key={item.id} thread={item} onChange={changeThread} headless={covering} /> : null
      }
    </AsyncState>
  ) : wide && resource.status === "success" ? (
    // Below 1024px the thread pane is hidden until a thread is open, so it holds nothing then.
    <div className="flex min-h-80 flex-1 items-center justify-center p-6">
      <EmptyState
        icon={<IconInbox aria-hidden="true" />}
        title={tx("Žádné vlákno k otevření", "No thread to open")}
        description={tx("Až nějaké přijde, otevře se tady.", "When one arrives, it opens here.")}
      />
    </div>
  ) : wide ? (
    <ThreadSkeleton />
  ) : null}
</Screen>
```

## Questions

### Is a chat screen an inbox?

Yes. Brightpath's channels, Riverside's messages, Foldline's mail and Juniper's handbook use the same type: a list beside the open item, each scrolling on its own, with a composer where people write.

### What does the inbox show when it opens?

On a screen with room, a thread is already open: at Foldline the first unread enquiry without a job, then the first unread, then the first thread. On a phone the list comes first.

### Where does the reply box go in an inbox?

Under the thread and outside its scroll, so it stays in reach however long the thread grows, on a desktop and on a phone.

### When is an inbox a work queue instead?

When each item ends in a decision rather than a reply. Kestrel's documents are accepted or returned, so they are a work queue with a decision pane, while Foldline's mail is answered, so it is an inbox.

## Related

- [One inbox for every member's message](https://meadowstack.com/screens/shared-inbox/) (Screens)
- [A dispatch plan that checks driving hours on every drag](https://meadowstack.com/screens/dispatch-plan/) (Screens)
- [A restaurant rota planned against the takings](https://meadowstack.com/screens/staff-rota/) (Screens)
- [Court bookings on a timeline you drag](https://meadowstack.com/screens/court-bookings/) (Screens)
- [AppShell: the sidebar, the top bar and the page](https://meadowstack.com/components/app-shell/) (Components)
- [Composer: writing next to a record](https://meadowstack.com/components/composer/) (Components)
