notifjs

A simple, responsive vanilla javascript library for toast notifications.

Usage no npm install needed!

<script type="module">
  import notifjs from 'https://cdn.skypack.dev/notifjs';
</script>

README

Notifjs

Notifjs is a simple, responsive vanilla javascript library for toast notifications.

demo gif

Installation

npm i notifjs

Usage

React example

import Notif from "notifjs";
import "notifjs/dist/notif.min.css";

// Create an instance of Notif
const notif = new Notif(2000);

// Display an error notfication
notyf.error("Oops! Something went wrong.");

// Display a success notfication
notyf.success("Congratulations! You made it.");