Skip to content
caliper ui pro docs

Mention inbox

Everything that asks for you: mentions, replies and assignments grouped by day, filtered by kind, answered in place, and cleared with Done and undo. j, k, r, e and u work from the keyboard.

Pro

When to use

  • Collaborative products with comments and assignments.
  • The bell menu grown into a page.

When not to use

  • System notices like billing or security; use the notification center.

Installation

terminal
pnpm dlx shadcn@latest add @caliper/mention-inbox

Adds its 6 files to components/ui/, each with its own stylesheet, and installs their packages. Pro installs with your access token, set up once per project. See Pro access. The first part also adds Caliper UI’s tokens; import them once as in Installation.

API reference

MentionInbox

6 props
PropTypeDefaultDescription
items *readonly InboxNotice[]—
onItemsChange *(items: InboxNotice[]) => void—
onOpen((item: InboxNotice) => void)—
onReply((item: InboxNotice, text: string) => void | Promise<void>)—Send a reply. May return a promise; a thrown error keeps the draft.
nownumber—Fix the clock, e.g. in tests.
classNamestring—

Keyboard

↓
Moves to the next item or value.
↑
Moves to the previous item or value.
Enter
Activates the focused control.
Escape
Closes or cancels, then returns focus to where it came from.

Accessibility

It exposes status, article and alert semantics, with aria-labelledby, aria-hidden, aria-label and aria-keyshortcuts kept in step with state. Changes that matter are announced through a live region.

Notes for AI

Give your coding assistant this page as Markdown instead of screenshots: the props, keyboard and examples in one file.

/docs/components/mention-inbox.md

The index of every part is at /llms.txt.

More in Sharing