toastalert v2.0.0 Released — Lightweight, Flexible JS Toast Notification Library

blog
Admin
2025-06-20
1 Comments

๐Ÿš€ toastalert v2.0.0 Released — Lightweight, Flexible JS Toast Notification Library

๐Ÿ”” Introduction

We’re excited to announce the release of toastalert v2.0.0, a significant upgrade to our lightweight JavaScript toast notification library. Whether you're building a dashboard, CMS, admin panel, or a blog — this plugin helps deliver beautiful, non-intrusive messages to your users in seconds.

Built with vanilla JavaScript and jQuery compatibility, it's perfect for modern web projects.

โœจ What’s New in v2.0.0

Feature Description
โœ… Fade Animation Smooth in-out transitions for toasts.
โœ… Icon Support Auto-injects status icons (โœ… โŒ โš ๏ธ โ„น๏ธ) based on type.
โœ… Positioning Support Easily place your toast: top-left, top-right, bottom-left, or bottom-right.
โœ… CDN + jQuery Plugin Works standalone or as a chainable jQuery plugin.
โœ… Reload or Redirect Add reload: true or url: 'page.html' for post-toast actions.

๐Ÿ”ง Installation

๐Ÿ“ฆ CDN (No jQuery Required)

๐Ÿงฉ CDN with jQuery Plugin Support

๐Ÿงช Usage Examples

โœ… Vanilla JS

toastalert.showToast({
                message: "Operation successful!",
                status: "success",
                position: "top-right",
                reload: false,
                url: "https://example.com",
            });

https://softondemand.co.in/api/toast/toastalert.v2.0.0.js 

โœ… jQuery Plugin

$('body').toastAlert({
  message: "Something went wrong.",
  status: "error",
  url: "/login"
});

๐Ÿงฉ Status Types & Icons

status Icon Color
success โœ… Green
error โŒ Tomato
warning โš ๏ธ Yellow
info โ„น๏ธ Gray

๐Ÿ“ Positioning

Use the position option to set where the toast appears:

  • top-left

  • top-right

  • bottom-left

  • bottom-right (default)

๐Ÿ” Auto Actions

toastalert.showToast({
  message: "Redirecting...",
  status: "info",
  url: "/dashboard" // or use `reload: true`
}); 

๐Ÿ“œ Changelog

๐Ÿ†• v2.0.0

  • Added fade animation

  • Icon support for toast types

  • Custom positioning

  • jQuery plugin integration

  • Improved accessibility

  • Graceful DOM cleanup

๐Ÿ“˜ Coming in Future Versions

  • Manual close button (X)

  • Toast queue & stacking

  • Dark mode theming

  • Custom icon/image injection

  • Toast duration config per type

๐Ÿ™Œ Why Use toastalert?

  • Lightweight and dependency-free

  • Easy to integrate with any existing UI

  • Works with or without jQuery

  • Clean UI without bloated libraries

  • Fully open-source and extendable

๐Ÿง‘‍๐Ÿ’ป Contribution & Feedback

We welcome issues, feature requests, and pull requests. Help us improve toastalert for the community!


ยฉ 2023 softondemand.co.in All Rights Reserved