Searching Open Sourcery

Type to search Open Sourcery.

Overlays & Panels

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.

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

AttributeValuesDefaultDescription
positiontop-right top-left top-center bottom-right bottom-left bottom-centertop-rightWhich corner/edge the stack pins to
layoutlist stacklistVertical list or stacked card deck
max-visiblenumber ≥ 13Overflowing (oldest) cards are dismissed
durationms5000Default auto-dismiss time; 0 = persistent
progresspresenceoffDraining timer bar on each timed card
no-expandpresenceoffDisable the stack layout's hover/focus fan-out

About, features, usage and options are taken from the package README.