Skip to content
Uxelith
Prov1.0.0App screens

Notification Inbox

A bell with an inbox behind it: unread count, tabs, today apart from older, and every item read, opened or archived in a click, a key or a swipe. Works with any server.

Installs with Uxelith ProHow
Licence
Pro
Packages
2
Updated
5 Nov 2026
Live

Installation

Usage

example.tsx
"use client"

import { NotificationInbox } from "@/components/notification-inbox"

export function Bell() {
  return (
    <NotificationInbox
      defaultItems={[
        { id: "1", actor: "Emily Carter", action: "mentioned you in", target: "Q3 launch plan", at: "2026-11-05T09:30:00Z", mention: true },
        { id: "2", actor: "James Walker", action: "approved", target: "Pull request #482", at: "2026-11-04T16:00:00Z", read: true },
      ]}
      onRead={(ids) => console.log("read", ids)}
      onArchive={(id) => console.log("archived", id)}
    />
  )
}

Props

PropTypeDefaultDescription
items / defaultItemsInboxItem[][]The notifications, kept by you or by the component. Each has id, actor, action, at, and optionally target, preview, avatar, read, mention, href.
onItemsChange(items) => void—Called with the new list after anything is read or archived.
onRead(ids: string[]) => void—Called with the ids just marked as read: save it on your server.
onArchive(id: string) => void—Called with the id just archived.
onSelect(item) => void—Called when a notification is chosen. It is marked read first.
defaultOpenbooleanfalseStart with the panel open. Focus stays where it is until someone uses it.
labelstring"Notifications"Accessible name of the bell and the panel.
tabsbooleantrueShow the All, Mentions and Unread tabs.
align"start" | "end""end"Which side of the bell the panel lines up with.
emptyMessageReactNode—Shown when a tab has nothing.
footerReactNode—Shown at the foot of the panel.

Accessibility

  • The bell says how many are unread; the panel is a dialog, and Escape closes it and gives focus back to the bell.
  • Up and Down move between notifications, Enter opens one, Delete archives it.
  • New arrivals, marking as read and archiving are announced to screen readers.
  • On touch, swipe a notification left to archive it; the Archive button does the same.
  • Motion stops under prefers-reduced-motion.

Changelog

  1. v1.0.0Latest

    First release.

More in App screens

All 8 in App screens
  • App screensPro

    Comment Thread

    Replies, emoji reactions, @mentions with suggestions, who is typing, comments that show the moment they are sent, and a thread you can resolve. Works with any server.

  • App screensPro

    Dashboard Shell

    An application frame: a sidebar that folds to an icon rail, a search that grows into a ⌘K command palette, stats with sparklines, a dense revenue chart with a 7/30/90-day range and recent orders with status badges.

  • App screensPro

    File Manager

    A file manager for your own storage: lasso and multi-select, drag to folders or the Trash, right-click menus, rename in place, Quick Look, Undo and uploads with progress, all by keyboard and touch too.