1.5.6 • Published 9 months ago

@codemasters/whisper v1.5.6

Weekly downloads
-
License
MIT
Repository
github
Last release
9 months ago

Whisper

a lightweight, framework-independent notification library

Installation or Update

bun

bun add @codemasters/whisper@latest

npm

npm i @codemasters/whisper@latest

or 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 added

Success 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");
1.5.6

9 months ago

1.5.5

9 months ago

1.5.3

10 months ago

1.5.2

10 months ago

1.5.1

10 months ago

1.5.0

10 months ago

1.0.21

10 months ago

1.0.2

10 months ago

1.0.10

10 months ago

1.0.1

10 months ago

1.0.0

10 months ago