1.5.6 • Published 9 months ago
@codemasters/whisper v1.5.6
Whisper
a lightweight, framework-independent notification library
Installation or Update
bun
bun add @codemasters/whisper@latestnpm
npm i @codemasters/whisper@latestor anything you like
Getting Started
import whisper from "@codemasters/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",
  backgroundColor: "#ededed",
  textColor: "#000000",
});
// more options will be addedSuccess whisper:
whisper.success("This is a success whisper");Loading whisper:
whisper.loading("This is a loading whisper");Error whisper:
whisper.error("This is a error whisper");To dismiss one or more whisper you can simply do:
whisper.dismiss("whisperID");