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-stackScheduled maintenance
Agents pause on Sunday from 02:00 to 03:00 UTC while we upgrade the sandbox fleet.
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.
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.
oxyn add notification-stackUsage
The preview is free. Pro opens the code of every Pro component, screen and template.
Examples
Stack
Three notices.
Scheduled maintenance
Agents pause on Sunday from 02:00 to 03:00 UTC while we upgrade the sandbox fleet.
Code Pro
The preview is free. Pro opens the code of every Pro component, screen and template.
Priority
The invite jumps to the front.
Sam invited you to Atlas
You'll see their agent runs and can approve on their behalf.
Code Pro
The preview is free. Pro opens the code of every Pro component, screen and template.
Flat
One card, no patterns.
Scheduled maintenance
Agents pause on Sunday from 02:00 to 03:00 UTC while we upgrade the sandbox fleet.
Code Pro
The preview is free. Pro opens the code of every Pro component, screen and template.
API reference
NotificationStack
| Prop | Type | Default | Description |
|---|---|---|---|
noticesrequired | Vec<Notice> | — | Notices (first = front). |
depth | usize | 3 | Cards drawn. |
by_priority | bool | Default::default() | Order by priority. |
undo | bool | true | Offer Undo after a dismiss. |
label | String | "Notices" | Region name. |
on_dismiss | EventHandler<String> | — | Dismissed (id). |
on_action | EventHandler<String> | — | Action pressed (id). |
Read from the Rust signature and doc comments.
Keyboard interactions
| Key | Action |
|---|---|
| Tab | The front card's buttons |
| EnterorSpace | Run 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
| Transition | Duration | Easing | Reduced motion |
|---|---|---|---|
| Dismiss | 220 ms | ease.out | instant |
| Move forward | 320 ms | ease.out | instant |
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
NotificationStackfromoxyn_dioxusand includePRIMITIVES_CSSplus the token stylesheet once. - A GPUI version exists:
NotificationStackElinoxyn_gpui. - Props to set first:
notices. - Keep its states and timings as they ship; restyle it through the CSS variables rather than by hand.