Data display
Reflowing Notification Stack
Reflowing Notification Stack: A stack of notification cards that reflows smoothly when a new one is added or an old one is dismissed, instead of jumping.
Using Reflowing Notification Stack
Reflowing Notification Stack uses the card preview frame with a dark theme setting.
Customize the preview
These controls are passed to the demo. Defaults and limits describe the preview; consult the implementation for its full prop API.
| Control | Type | Default | Preview limits |
|---|---|---|---|
accentColor | color | #38BDF8 | No additional limit in the metadata. |
autoDismissSeconds | number | 0 | From 0 to 10; step 1 |
stackGap | number | 12 | From 8 to 24; step 2 |
addButtonLabel | text | Add notification + | Up to 40 characters |
Which frameworks are available for Reflowing Notification Stack?
Reflowing Notification Stack is available for React, Vue, Svelte, Astro, HTML. The live preview uses React; the source observations below apply to index.tsx. Check the selected port before relying on the same interactions.
What does Reflowing Notification Stack depend on?
The React metadata lists these npm dependencies beyond React: motion, clsx, tailwind-merge.
What accessibility details are visible in Reflowing Notification Stack?
The React source for Reflowing Notification Stack includes: native elements (button); attributes and handlers (aria-hidden, aria-label). These are source observations. Verify accessible names, focus order and keyboard behavior in the composed page.
How does Reflowing Notification Stack handle reduced motion?
Reflowing Notification Stack reads the motion preference in its React source through useReducedMotion(). Preference-dependent expressions in index.tsx: enter: reduceMotion ? { opacity: 0 } : { opacity: 0, y: -18, scale: 0.96 }; leave: reduceMotion ? { opacity: 0 } : { opacity: 0, y: -12, scale: 0.96 }; transition: reduceMotion ? { duration: 0.01 } : { type: "spring" as const, stiffness: 420, damping: 34 }. Check the full implementation, shared styles and selected port with reduced motion enabled; these observations do not establish that every animation stops.