Inbox list
A React component in Beamline's Content & display category, in the free sample.
Conversations waiting for a person, triaged in place: sender, subject and the first words, time, unread weight, star, labels and attachments, grouped by day; tick several for Archive, Mark read and Delete in a bar that grows over the header, or act on one from its row (hover, keyboard or a swipe on touch). Archived rows close up with Undo in their place.
Use it for
- The list side of a mail client, a support inbox, shared team inboxes or direct messages: many conversations, some unread, that a person opens, archives or marks in bulk.
- A queue of requests where reading state and quick triage matter more than columns.
Not for
- The messages inside one conversation (chat-thread, comment-thread).
- Updates from the product behind a bell (notification-center).
- Records compared by columns and sorted (data-grid, table).
- A plain list of things with no reading state (item).
Anatomy
- header: a select-all box (some, all or none), the count, and while anything is ticked the bulk bar in its place: N selected, Archive, Mark read or unread, Delete; buttons keep their accessible names when narrow layouts hide the visible text
- day groups: Today, Yesterday, the weekday this week, then the month
- row: tick box, star, the sender's face (or several for a thread with others), sender in bold while unread with the thread count, subject and the first words of the newest message on one line (two in a narrow room), labels as tags, a paper clip when it has files, time; the open row ringed
- row actions: Archive, Mark read or unread, Delete in the time's place while the row has attention (hover, focus); on touch the swipe does the same
- swipe on touch: left to archive, right to mark read or unread, the action named under the row as it slides
- undo line: where archived or deleted rows were, 'Archived 3 conversations · Undo' for six seconds
- loading rows and an empty state
Variants
- density: compact, default
States
- unread
- read
- starred
- ticked
- open (current)
- loading
- empty
- removed (undo line)
- swiping
Keyboard
- The list is one tab stop: ↑/↓ (or j/k) move, Home/End go to the ends, Enter or Space opens (and marks read)
- x ticks the row, Shift+↑/↓ ticks while moving; s stars; e archives; u marks read or unread; # deletes (the shortcuts are named to assistive tech)
- Escape clears the ticks
- The select-all box and the bulk bar's buttons are Tab stops; a row's own buttons are for pointer and touch, the keys above do the same
Motion
Ticking the first row grows the bulk bar over the header; clearing returns it. Archived and deleted rows leave a fading ghost while the rows below close the gap (useFlip), and the undo line takes their place; Undo grows them back. A star fills from its centre. On touch a swiped row follows the finger with its action revealed underneath and settles back or away. The open row's ring glides between rows. Reduced motion: changes are instant.
Props
| Prop | Type | Default | Description |
|---|---|---|---|
items (required) | InboxItem[] | — | |
value / defaultValue / onValueChange | string | null | — | value: The open conversation. defaultValue: Initial selection when uncontrolled; omitted by default. onValueChange: Reports the selected value after a change; no callback by default. |
onAction | (action: InboxAction, ids: string[]) => void | — | The list shows the change at once; update your items to keep it. |
onUndo | (action: "archive" | "delete", ids: string[]) => void | — | With it, archived and deleted rows leave an Undo line where they were. |
label | string | — | The list's name. Default "Inbox". |
loading | boolean | — | |
empty | ReactNode | — | What shows when nothing is left. |
density | "compact" | "default" | — | |
className / classNames / style / ref | root | — | className: Classes on the documented visual root; no override by default. classNames: Classes for the named visual parts; no overrides by default. style: Inline styles on the documented visual root; no overrides by default. ref: Receives the documented native target or imperative handle; omitted by default. |
value | string | null | — | The open conversation. |
defaultValue | string | null | — | Initial selection when uncontrolled; omitted by default. |
onValueChange | ((id: string | null) => void) | — | Reports the selected value after a change; no callback by default. |
selected | string[] | — | Ticked rows. |
defaultSelected | string[] | — | |
onSelectedChange | ((ids: string[]) => void) | — | |
className | string | — | Classes on the documented visual root; no override by default. |
classNames | Partial<Record<"root" | "header" | "time" | "group" | "row" | "actions" | "preview" | "… | — | Classes for the named visual parts; no overrides by default. |
style | CSSProperties | — | Inline styles on the documented visual root; no overrides by default. |
ref | Ref<HTMLDivElement> | — | Receives the documented native target or imperative handle; omitted by default. |
manual | boolean | — | Server owns ordering, filters, search and page slicing. Default false. |
sort | ListSort | — | |
defaultSort | ListSort | — | |
onSortChange | ((sort: ListSort) => void) | — | |
filters | ListFilters | — | |
defaultFilters | ListFilters | — | |
onFiltersChange | ((filters: ListFilters) => void) | — | |
query | string | — | |
defaultQuery | string | — | |
onQueryChange | ((query: string) => void) | — | |
selectable | boolean | — | |
error | ReactNode | Error | — | Errors retain the last completed rows. Error objects are rendered by their message. |
onRetry | (() => void | Promise<unknown>) | — | |
emptyLabel | string | — | |
allowSelectAllMatching | boolean | — | |
onSelectAllMatching | ((scope: { rowCount: number; query: string; filters: ListFilters; }) => void) | — | |
pagination | boolean | — | Enable page controls explicitly. Page-related props also enable them, unless onEndReached is supplied. |
page | number | — | One-based requested page. Default 1. |
defaultPage | number | — | |
onPageChange | ((page: number) => void) | — | |
pageSize | number | — | Positive rows per page. Default 25. |
defaultPageSize | number | — | |
onPageSizeChange | ((pageSize: number) => void) | — | |
rowCount | number | null | — | Total matching rows on the server. null means unknown. Local grids calculate it before slicing. |
total | number | null | — | Deprecated: Use rowCount. Canonical rowCount wins, including null. |
onEndReached | (() => void | Promise<unknown>) | — | Append mode: fetch another batch. The app appends it to the supplied rows. |
hasMore | boolean | — | Whether another batch exists; defaults to true with onEndReached. False stops requests. |
loadingMore | boolean | — | An append request is pending; retain every loaded row. |
Built from
- checkbox
- avatar
- button
Used in
Dependencies
lucide-react, @radix-ui/react-checkbox
Import
import { InboxList } from "@beamline/inbox-list";
Get it
Inbox list is part of Beamline UI. Install the parts you need in your React app as compiled packages or editable source. Inbox list is included in the free MIT sample. Get Beamline · Connect your agent
More in Content & display
- Image compare: Two images in one frame with a divider: drag anywhere, or arrow keys on the handle; horizontal or vertical, with captions.
- Revision compare: Two revisions of a drawing on one camera: side by side, they pan and zoom together (a crosshair in one pane marks the point under the pointer in the…
- Live cursors: Who else is working on this, and where: over any shared surface, each person's pointer in the colour their name always gets, with a name flag, gliding…
- Document viewer: A PDF or a paged document read and marked up in place: page thumbnails beside it, zoom to the width, the page or a percentage, pages by keyboard, a…
- Video player: A video player on the native <video> element: title bar with an external link and close, centre play with ±10 s, scrub, time, volume, speed, captions…
- Lightbox: A full-screen image viewer: a thumbnail grows into it and shrinks back, arrows and ←/→ step through the set, Esc or a downward drag closes it.
- File diff: A change to one file as a unified diff: line numbers, tinted lines, only the changed words marked, long unchanged stretches folded; give rows or just…
- QR Code: A scannable code set as gradient dots with rounded finder rings and an optional centre mark; a new value ripples out from the centre.
- Data matrix: A DataMatrix (ECC 200, ISO/IEC 16022) any scanner reads: crisp square modules in SVG at any size, the smallest symbol that holds the value (10×10 to…
- Slot text: Text and numbers that roll into their new value on reels, digit by digit from the right; other characters fade. Read as plain text by assistive tech.
- Text reveal: A headline whose words rise into place once, the first time it scrolls into view; never repeats.
- Text morph: A short label that becomes its next state letter by letter: shared letters glide into place, new ones arrive, old ones leave.
- Code block: Code to read and copy: highlighted in the system's colours, numbered, marked lines, long files folded behind “Show all”.
- Comment thread: A discussion attached to something: replies, reactions, @mentions, editing and deleting your own, resolve that folds the thread.
- Timeline: What happened, newest first and grouped by day: people with avatars, systems with toned icons, relative times with the exact time on hover, details in…
- Description list: The details of one record as label and value pairs: beside each other or stacked, in as many columns as the room holds; a copy button arrives on the row…
- Text shimmer: Ongoing work said in words (“Thinking…”) with a calm band of light passing across them; stops when inactive.
- Logo Carousel: A wall of logos shown a few at a time: every few seconds the slots turn left to right, each logo leaving upward as the next rises in.
- Avatar group: A team in a small space: overlapping faces that name themselves on hover or focus, and “+N” naming the rest.
- Avatar: A person or account in a small space: a photo, or initials on the hue their name always gets; presence dot; circle for people, square for companies.
- Item: The generic list row: media, title, description, meta and trailing actions; becomes a link or button when interactive.
- Marker: A labelled point in a stream: a status event with an icon between messages, or a label such as "Today" between two hairlines.
- Credit: "Designed with Beamline" for a site's footer: the Beamline mark and a quiet line, or a small badge. With your partner code, each new customer's first…
- Badge: A short status, category or count label: six tones, an icon or a status dot, two sizes.
- Kbd: Keyboard keys as keycaps, for combinations and sequences (G then A); `mod` resolves to ⌘ or Ctrl per platform, symbols are spoken as words.