1.0.0 • Published 6 years ago

rmc-notification v1.0.0

Weekly downloads
23,071
License
-
Repository
github
Last release
6 years ago

rmc-notification


React Notification UI Component

NPM version build status Test coverage gemnasium deps node version npm download

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

rmc-notification

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.