Notification center
A bell with how many are unread, which opens the notifications grouped by day, with All and Unread tabs. Short rows, a feed with actions in its rows, or an inbox archived down to empty.
Preview
Short rows, many to a screen, for an app that sends a lot of small news. Under the pointer the time gives way to Mark as read; opening a row marks it read.
Examples
Feed
Led by the people in it, with what they wrote quoted under them and an invite answered in its row. The answer stays on the row, and the row is read.
Inbox
Notifications are archived once dealt with, down to an empty list. Archive all read clears what’s been seen, and Undo puts it back until the panel closes.
Installation
Copy code
npx shadcn@latest add https://kinoui.com/r/notification-center.json- Files
lib/number-format.tslib/reduce-motion.tslib/resize.tslib/roll.tsxlib/refs.tslib/swap.tsxlib/run-progress.tscomponents/kino/animated-number.tsxlib/highlight.tslib/flow.tscomponents/kino/avatar.tsxcomponents/kino/badge.tsxcomponents/kino/spinner.tsxcomponents/kino/button.tsxcomponents/kino/empty.tsxlib/pill.tslib/scroll.tscomponents/kino/tabs.tsxlib/popup.tslib/glide.tsxcomponents/kino/tooltip.tsxlib/announce.tsxlib/controllable.tslib/dates.tslib/grip.tslib/panel.tsxcomponents/kino/sheet.tsxcomponents/kino/drawer.tsxcomponents/kino/popover.tsxlib/roomy.tslib/popover-sheet.tsxlib/settle.tscomponents/kino/notification-center/notification-center.tsxcomponents/kino/notification-center/notification-parts.tsxcomponents/kino/notification-center/notification-bell.tsxcomponents/kino/notification-center/notification-list.ts- Packages
@base-ui/reactclass-variance-authority- Global CSS
- the feels, the density tokens, the shape tokens and the success and warning colours
New to Kino? Installation covers what your project needs first and the @kino namespace.
API reference
NotificationCenter
NotificationItem
NotificationSettingsLink
Accessibility
- The bell’s name carries the count: “Notifications, 3 unread”. The badge on it is hidden from screen readers, and a notification that arrives is announced with how many are unread.
- The panel is a dialog named by its title. It opens with focus on the picked tab, so Enter never marks everything read, and Escape closes it with focus back on the bell.
- Each row is an article named by its title, which is a link or a button covering the row, and “Unread” is read before it. An unread title is in full colour and medium weight; a read one is muted and regular, so unread never shows by colour alone. Its own buttons are named, described by the title, and show on hover or keyboard focus, or always on a touch screen.
- Nothing is marked read by being seen. When a row leaves, focus goes to the same button in the row that takes its place, or to the tab once none is left, and every change is announced: Marked as read, Archived, and where Undo is.
- Days and times follow the locale, and a time in a right-to-left page reads in its own direction.