Basic Usage
Using NanoToast is a straightforward process.
Import the library
when using as module
import toast from "@iamsabbir/nanotoast";
import "@iamsabbir/nanotoast/src/styles.css"; // Ensure you import stylesBasic Toast
toast("This is a simple toast!");Success Toast
toast.success("This is a simple toast!");Error Toast
toast.error("This is a simple toast!");Warning Toast
toast.warning("This is a simple toast!");Info Toast
toast.info("This is a simple toast!");