Skip to content
Back

Notification StackPro

Notice cards stacked behind each other: dismiss the front one to reveal the next. Oxyn adds stack depth, priority ordering, an Undo and background patterns.

oxyn add notification-stack
Notice1 of 3

Scheduled maintenance

Agents pause on Sunday from 02:00 to 03:00 UTC while we upgrade the sandbox fleet.

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

  • Several standing notices that each need a moment: maintenance windows, invites, release notes.
  • Stacking keeps them in one place; the user deals with the front one and the next takes its place.

When not to use

  • Calm toasts from anywhere: use Toaster instead.
  • A persistent message that helps people recover or continue: use Alert instead.
  • Fourteen text-glyph loaders (braille, sand, blocks, scanner…) that settle into a check, a warning or a cross when the agent finishes, waits or fails: use Glyph loader instead.

Installation

Notification Stack 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-stack

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

Stack

Three notices.

Notice1 of 3

Scheduled maintenance

Agents pause on Sunday from 02:00 to 03:00 UTC while we upgrade the sandbox fleet.

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

Priority

The invite jumps to the front.

Invite1 of 3

Sam invited you to Atlas

You'll see their agent runs and can approve on their behalf.

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

Flat

One card, no patterns.

Notice1 of 3

Scheduled maintenance

Agents pause on Sunday from 02:00 to 03:00 UTC while we upgrade the sandbox fleet.

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

NotificationStack

PropTypeDefaultDescription
noticesrequiredVec<Notice>—Notices (first = front).
depthusize3Cards drawn.
by_priorityboolDefault::default()Order by priority.
undobooltrueOffer Undo after a dismiss.
labelString"Notices"Region name.
on_dismissEventHandler<String>—Dismissed (id).
on_actionEventHandler<String>—Action pressed (id).

Read from the Rust signature and doc comments.

Keyboard interactions

KeyAction
TabThe front card's buttons
EnterorSpaceRun the action or dismiss

Accessibility

  • A labelled region; each card is an article named by its title.
  • Only the front card is read out and focusable; the next takes its place after a dismiss.
From the spec

Only the front card is focusable and read; cards behind are aria-hidden and inert. The dismiss button is named "Dismiss <title>"; external actions show an external icon.

Motion & interaction

Cards behind scale down 5 % per level and lift 10 px; when the front one leaves the rest move forward on a spring. Patterns fade toward the bottom right.

Timing
TransitionDurationEasingReduced motion
Dismiss220 msease.outinstant
Move forward320 msease.outinstant

Responsive behaviour

  • 340 px wide, never wider than its container.
Edge cases (spec)

Long text wraps; the stack grows with the front card. One notice draws no edges. Priority ties keep insertion order.

Notes for AI

  • Import NotificationStack from oxyn_dioxus and include PRIMITIVES_CSS plus the token stylesheet once.
  • A GPUI version exists: NotificationStackEl in oxyn_gpui.
  • Props to set first: notices.
  • 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