Skip to content
Eskais UI

Blocks

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

1500Pressfor shortcuts

Installation

npx shadcn@latest add @eskais/inbox

Usage

Import
import { sampleInboxItems } from "@/components/inbox-sample"import { Inbox, inboxCopy } from "@/components/inbox"

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

PropTypeDefault
itemsrequiredreadonly InboxItem[]–
localestring–
timeZonestring–
classNamestring–

Other exports

sampleInboxItemsinboxCopytype InboxItemtype InboxProps

Accessibility

  • 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.