npm.io
1.0.2 • Published 6 years ago

klicknotify

Licence
MIT
Version
1.0.2
Deps
1
Size
37 kB
Vulns
0
Weekly
0

Klicknotify

Build Status npm

Simple notification plugin for Klick* projects

Install

Get it on npm:

npm install klicknotify --save

Usage

import Notify from 'klicknotify';

// Initialize plugin
Notify.init();

// Show notification
Notify.show({ type: 'success', message: 'Ok!' });
Suported types
  • success
  • error
  • warning

You can use the types as alias to show notification:

Notify.success({ message: 'ok' });

Notify.error({ message: 'error' });

Notify.warning({ message: 'caution' });

Keywords