A notification message component.
Showcase at http://yuehu.github.io/notice/.
Install with component(1):
$ component install yuehu/notice
var notice = require('notice');
- message:
notice({message: 'Show a message'})
- type: warn or error.
- url: A message with this url.
- duration: dismiss after the duration, default is 4000ms.
- closeEvent: clear the message on the given event. Default is click.
Show & auto dismiss an message.
notice('Show a message');
Create a notification.
Show message.
Clear message.
Alias for Notice#clear()
.
MIT