Notification preferences
What people are told about and where: every event against email, in-app and push, one switch per group that shows when only some are on, a digest for the rest, and a pause with a visible end.
| Event | In app | Push | |
|---|---|---|---|
| Your work | |||
| MentionsSomeone @mentions you in a comment. | |||
| Assigned to youA ticket, task or invoice is given to you. | |||
| Due soonSomething of yours is due within a day. | |||
| Your team | |||
| ApprovalsAn expense or payment waits for you. | |||
| New membersSomeone joins the workspace. | – | ||
| Account and security | |||
| New sign-inYour account is used on a new device. | |||
| BillingReceipts, failed payments and plan changes. | – |
Checked and greyed out: always sent, such as security alerts.
When to use
- The notifications page in account settings.
- Any product that sends more than a handful of kinds of message.
When not to use
- A single on/off for one kind of email; use a switch in a settings row.
Installation
pnpm dlx shadcn@latest add @caliper/notification-preferences
Adds its 8 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
NotificationPreferences
18 props
Keyboard
- Keyboard and focus come from Radix popover: arrow keys move through items, Enter and Space select, and Escape closes and returns focus.
Accessibility
It exposes status semantics, with aria-label, aria-hidden, aria-labelledby and aria-disabled 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/notification-preferences.mdThe index of every part is at /llms.txt.