rmc-notification
v1.0.0
Published
notification ui component for react
Downloads
71,996
Readme
rmc-notification
React Notification UI Component
Development
npm install
npm start
Example
http://localhost:8000/examples/
online example: http://react-component.github.io/m-notification/examples/
Feature
- support ie8,ie8+,chrome,firefox,safari
install
Usage
var Notification = require('rmc-notification');
Notification.newInstance({}, notification => {
notification.notice({
content: 'content'
});
});
API
Notification.newInstance(props, (notification) => void) => void
props details:
notification.notice(props)
props details:
notification.removeNotice(key:string)
remove single notice with specified key
notification.destroy()
destroy current notification
Test Case
npm test
npm run chrome-test
Coverage
npm run coverage
open coverage/ dir
License
rmc-notification is released under the MIT license.