notify-bajs

1.0.22 • Public • Published

📦 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 of top-left top-right bottom-left bottom-right (default: top-right)
  • classContainer: (string) - Customized CSS class
  • type: (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 show
  • top: (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

Package Sidebar

Install

npm i notify-bajs

Weekly Downloads

0

Version

1.0.22

License

MIT

Unpacked Size

18 kB

Total Files

16

Last publish

Collaborators

  • jsdarkcode