NanoToast

Usage in Vanilla JS

All the features of NanoToast are available in Vanilla JS.

Installation

<!-- Add the javascript -->
<script src="https://unpkg.com/@iamsabbir/nanotoast/dist/nanotoast.js"></script>
<!-- Or if you want esm module -->
<script src="https://unpkg.com/@iamsabbir/nanotoast/dist/nanotoast.esm.js"></script>

<!-- Add the css -->
<link rel="stylesheet" href="https://unpkg.com/@iamsabbir/nanotoast/dist/nanotoast.css">

Basic Toast

NanoToast.toast("This is a simple toast!");

Success Toast

NanoToast.toast.success("This is a simple toast!");

Error Toast

NanoToast.toast.error("This is a simple toast!");

Warning Toast

NanoToast.toast.warning("This is a simple toast!");

Info Toast

NanoToast.toast.info("This is a simple toast!");