Skip to content
Back

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-center
Atlas
Notifications3 unread
Today

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?

Earlier

312 of 500 credits used. Runs keep going until 100%.

12 sources, 3 claims flagged as unverified.

The code is part of Oxyn Pro

The preview stays free for everyone. Pro opens the code of every Pro component, screen, agent-app template, block and kit, plus the Pro CLI.

Get Pro

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

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.

Terminal
oxyn add notification-center

Usage

Dioxus · rust
The code is part of Oxyn Pro

The preview is free. Pro opens the code of every Pro component, screen and template.

Get Pro

Examples

Bell

A bell with the panel open.

Atlas
Notifications3 unread
Today

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?

Earlier

312 of 500 credits used. Runs keep going until 100%.

12 sources, 3 claims flagged as unverified.

Code Pro
The code is part of Oxyn Pro

The preview is free. Pro opens the code of every Pro component, screen and template.

Get Pro

Unread

Unread only.

Atlas
Notifications3 unread
Today

4 files changed in auth/. Tests pass. Review the diff before it pushes.

148 tests passed · $0.84 · 6 min 12 s.

Earlier

12 sources, 3 claims flagged as unverified.

Code Pro
The code is part of Oxyn Pro

The preview is free. Pro opens the code of every Pro component, screen and template.

Get Pro

Inline

Inline panel for a sidebar (Oxyn plus).

Notifications3 unread
Today

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?

Earlier

312 of 500 credits used. Runs keep going until 100%.

12 sources, 3 claims flagged as unverified.

Code Pro
The code is part of Oxyn Pro

The preview is free. Pro opens the code of every Pro component, screen and template.

Get Pro

API reference

NotificationCenter

PropTypeDefaultDescription
itemsrequiredVec<Note>—Notifications.
openboolDefault::default()Start open.
inlineboolDefault::default()Panel inline (no trigger).
viewString"all"`all` · `unread`.
on_openEventHandler<String>—Row opened (id).

Read from the Rust signature and doc comments.

Keyboard interactions

KeyAction
EnterExpand a row (marks it read)
TabRows, 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
TransitionDurationEasingReduced motion
Tilt520 msease.outnone
Row expand260 msease.outinstant
Cascade220 ms + 30 msease.outinstant

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 NotificationCenter from oxyn_dioxus and include PRIMITIVES_CSS plus the token stylesheet once.
  • A GPUI version exists: NotificationCenterEl in oxyn_gpui.
  • Props to set first: items.
  • Keep its states and timings as they ship; restyle it through the CSS variables rather than by hand.

Guides

Oxyn · 74 free components · 264 Pro components · 96 screens · 20 blocks · Dioxus and GPUI