0.0.5 • Published 6 months ago
@tahasadough/whisper v0.0.5
Whisper
a lightweight, framework-independent notification library
Installation
With bun
bun add @tahasadough/whisper
With NPM
npm i @tahasadough/whisper
or anything you like
Getting Started
import { whisper } from "@tahasadough/whisper";
whisper("Hey buddy! Making progress?");
You can also pass an object for options:
whisper("Hey buddy! Making progress?", {
position: "top-center",
duration: 2000,
id: "whisperID",
textAlign: "left",
type: "ordinary",
backgroundColor: "#ededed",
textColor: "#000000",
});
// more options will be added
To dismiss one or more whisper you can simply do:
whisper().dismiss("whisperID");