DEV Community

Cover image for toast-anchor: Feature-rich Toast Notifications for JS & React
jQueryScript
jQueryScript

Posted on

toast-anchor: Feature-rich Toast Notifications for JS & React

toast-anchor: a Vanilla JS and React notification library covering toast messages, anchored popup notifications, inline confirm dialogs, and modal overlays through one function-based API.

Key features:

  • Anchored tooltip-style toasts attached to specific DOM elements
  • Inline Yes/No confirm popup positioned relative to the trigger button
  • Promise toast with automatic loading, success, and error state transitions
  • Centered modal confirm returning Promise<boolean>
  • Nine screen positions with full per-call style control
  • React hook with optional hook-level defaults
  • Under 6.4kb, no dependencies, no stylesheet required

👉 Blog Post

👉 GitHub Repo

👉 Live Demo

Top comments (0)