Simple notification plugin for Klick* projects
Get it on npm:
npm install klicknotify --save
import Notify from 'klicknotify';
// Initialize plugin
Notify.init();
// Show notification
Notify.show({ type: 'success', message: 'Ok!' });
- 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' });