Inbox
A keyboard-first inbox block: a virtualized List of messages, j/k and Enter to open a SidePanel inspector with single-key actions, x to select for a bulk action and ? for every key.
Example
Inbox
1500Press?for shortcutsinbox-demo.tsxCopy code
Installation
Copy code
Usage
ImportCopy code
Copy it, then edit the copy object at its top and the row and panel content. A keyboard-first list with an inspector: sampleInboxItems(count) makes demo data.
API reference
Inbox
| Prop | Type | Default |
|---|---|---|
itemsrequired | readonly InboxItem[] | – |
locale | string | – |
timeZone | string | – |
className | string | – |
Other exports
sampleInboxItemsinboxCopytype InboxItemtype InboxPropsAccessibility
- Rows are one tab stop: j/k or the arrows move, Enter opens the side panel, Escape closes it and focus returns to the row.
- The panel is a complementary region named by the message subject; U and P are shown on its buttons and set aria-keyshortcuts.
- 1,500 messages render only the rows in view, with aria-setsize and aria-posinset; find in page still reaches the rest.
Agent actions
Agents select any message with the list's select(id), rendered or not, and press the panel's buttons by name.
Runs agent.snapshot() from @ui-sdk/react/agent on the live preview above.