Notification Stack
Stacked-card and list toasts with auto-dismiss timers.
unreleased@magic-spells/notification-stack
Not on the registry yet — clone or read it on GitHub.
Usage
<notification-stack position="top-right" layout="stack" max-visible="3" progress></notification-stack>
About
A fixed-corner notification manager web component. Notifications arrive as a stacked deck of cards or a vertical list, auto-dismiss on pausable timers, and enter/exit with animations built from opacity, scale, and blur — when one leaves, the survivors glide into their new spots. 3.8 kB min+gzip, zero dependencies, no Shadow DOM.
Attributes
| Attribute | Values | Default | Description |
|---|---|---|---|
| position | top-right top-left top-center bottom-right bottom-left bottom-center | top-right | Which corner/edge the stack pins to |
| layout | list stack | list | Vertical list or stacked card deck |
| max-visible | number ≥ 1 | 3 | Overflowing (oldest) cards are dismissed |
| duration | ms | 5000 | Default auto-dismiss time; 0 = persistent |
| progress | presence | off | Draining timer bar on each timed card |
| no-expand | presence | off | Disable the stack layout's hover/focus fan-out |
About, features, usage and options are taken from the package README.