The lightweight notifications system UI
First of all install the package:
NPM
: npm install notefer
Yarn
: yarn add notefer
Then you can import required things and send notifications
import { pushNotification } from "notefer";
import "notefer/lib/style.css";
pushNotification({
title: "Direct Message",
text: "Alex: How are you?",
});
interface Notification {
title: string; // notification title
text: string; // notification body
lifetime?: number; // how long notification box should exist on the screen
className?: string; // additional class name, applied to notif body
}