A simple and customizable notification web component.
Quick instalation in three simple steps:
- Install
npm i wc-notify
- Add at the root of your project (see examples in some popular frameworks)
<wc-notify></wc-notify>
- Use
import { notify } from "wc-notify";
notify("An awesome notification 🥳");
You can pass an object as second argument to the notify
function to customize the notification:
notify("Logged in successfully!", {
duration: 4000 // in milliseconds
});