Notification centerPro
A home for updates: unread badge, All and Unread views, grouped rows that expand in place, mark all read and clear, with a bell that tilts.
oxyn add notification-centerThe preview stays free for everyone. Pro opens the code of every Pro component, screen, agent-app template, block and kit, plus the Pro CLI.
Rendered from Rust at build time · goes live when visible
When to use
- Approvals waiting, runs finished, mentions and system notices in one place.
When not to use
- Notice cards stacked behind each other: use Notification Stack instead.
- Calm toasts from anywhere: use Toaster instead.
- An app sidebar: use Sidebar instead.
Installation
Notification center is part of Oxyn Pro; the preview is free. Pro items install with the oxyn CLI once your licence is signed in; until then Pro members copy the code from this page.
oxyn add notification-centerUsage
The preview is free. Pro opens the code of every Pro component, screen and template.
Examples
Bell
A bell with the panel open.
Code Pro
The preview is free. Pro opens the code of every Pro component, screen and template.
Unread
Unread only.
Code Pro
The preview is free. Pro opens the code of every Pro component, screen and template.
Inline
Inline panel for a sidebar (Oxyn plus).
4 files changed in auth/. Tests pass. Review the diff before it pushes.
148 tests passed · $0.84 · 6 min 12 s.
@alex can you check the sandbox quota before Friday?
312 of 500 credits used. Runs keep going until 100%.
12 sources, 3 claims flagged as unverified.
Code Pro
The preview is free. Pro opens the code of every Pro component, screen and template.
API reference
NotificationCenter
| Prop | Type | Default | Description |
|---|---|---|---|
itemsrequired | Vec<Note> | — | Notifications. |
open | bool | Default::default() | Start open. |
inline | bool | Default::default() | Panel inline (no trigger). |
view | String | "all" | `all` · `unread`. |
on_open | EventHandler<String> | — | Row opened (id). |
Read from the Rust signature and doc comments.
Keyboard interactions
| Key | Action |
|---|---|
| Enter | Expand a row (marks it read) |
| Tab | Rows, dismiss buttons, views and bulk actions |
Accessibility
- The bell label includes the unread count; the badge is aria-hidden.
- Rows use aria-expanded; focus moves to the next row after a dismiss.
- The summary line is polite.
From the spec
Bell label carries the unread count, badge aria-hidden; summary aria-live=polite; view toggles aria-pressed.
Motion & interaction
The bell tilts when the panel opens; the badge and summary roll; rows expand their own height and cascade in.
Timing
| Transition | Duration | Easing | Reduced motion |
|---|---|---|---|
| Tilt | 520 ms | ease.out | none |
| Row expand | 260 ms | ease.out | instant |
| Cascade | 220 ms + 30 ms | ease.out | instant |
Responsive behaviour
- The panel caps at the viewport minus a gutter.
Edge cases (spec)
Unread view hides rows as they are read; focus moves to the next row. The panel caps at the viewport.
Notes for AI
- Import
NotificationCenterfromoxyn_dioxusand includePRIMITIVES_CSSplus the token stylesheet once. - A GPUI version exists:
NotificationCenterElinoxyn_gpui. - Props to set first:
items. - Keep its states and timings as they ship; restyle it through the CSS variables rather than by hand.