Notification component with a clean slate to build off of, style and position them however you like.
These don't have to look like growl style notifications, use your trusty friend CSS.
$ npm install notification-component
- events for composition
- structural CSS letting you decide on style
- transient notifications
- transient closable notifications
- sticky (implicitly closable) notifications
- notification classes (info, warn, error)
- fluent API
closethe notification is closed via the Xclickthe notification is clicked
Notify with the given msg and no title. The
notification will hide after 4 seconds by default.
Notify with the given msg and title. The
notification will hide after 4 seconds by default.
Same as notify()
Same as notify() with a warn class for styling.
Same as notify() with a error class for styling.
Make the notification sticky, aka it will not close
automatically, and it will automatically be .closable().
Show the notification.
Hide the notification immediately or wait ms.
Mark the notification as closable, adding an "X" so the user may explicitly close it.
One of the following effects, or define your own with class name:
slidefadescale
MIT
