notify-bajs
v1.0.22
Published
Show notifications so easy
Downloads
46
Maintainers
Readme
📦 Notify BaJS
Installation
npm install notify-bajs
Usage
import NotifyBaJS from "notify-bajs";
NotifyBaJS({
type: "success",
title: "Notify BaJS",
content: "Hello world"
});
Optional parameters
placement
: (string) - Position of notify, can be one oftop-left
top-right
bottom-left
bottom-right
(default:top-right
)classContainer
: (string) - Customized CSS classtype
: (string) -success
info
warning
danger
duration
: (number) - Time in millisecond before notify is closed (default: 3000)width
: (number) - max-width css (default: 300)delay
: (number) - Delay in millisecond, before tooltip is showtop
: (number) - Distance from the top of the viewport (unit: pixels)closable
: (boolean) - Whether a close (x) button is visible on top right of the modal dialog or not