toast-queue
v1.0.0
Published
Accessible, customizable toast notifications for modern web apps. A framework-agnostic JavaScript library with progressive enhancement, sensible core styles, and optional CSS presets.
Readme
Accessible, customizable toast notifications for modern web apps.
Features
- Framework agnostic: Vanilla JavaScript with zero runtime dependencies.
- Customizable: Bring your own CSS or start with the included presets.
- Accessible: Screen-reader announcements via
ariaNotify(), keyboard dismissal with Escape, and focus management. - Top layer: Uses the browser’s top layer and ensures it stays on top of other top-layer elements.
- Touch-friendly: Swipe to dismiss on touch devices.
- Progressively enhanced: Uses modern browser APIs where available and falls back where possible.
Documentation
API reference
License
Distributed under the MIT license. See LICENSE for details.
