notification-test
🎉 notification-test allow you to add notification to your app with ease. No more nonsense!
Installation
$ npm install notification-test
$ yarn add notification-test
Usage
import React, { Component } from 'react';
import Tip from 'is-notification'
class App extends Component {
notify = () => {
Tip.open({
message:'message',
description:'description'
})
}
render(){
return (
<div>
<button onClick={this.notify}>Notify !</button>
</div>
);
}
}
Set autoclose delay or disable it
Tip.open({
message:'message',
description:'description',
duration: 0
})
Notifications with color reminders
Tip.info({
message:'info',
description:'info'
})
Tip.success({
message:'success',
description:'success'
})
Tip.warning({
message:'warning',
description:'warning'
})
Tip.error({
message:'error',
description:'error'
})