0.1.9 • Published 4 years ago

rw-notification v0.1.9

Weekly downloads
4
License
MIT
Repository
github
Last release
4 years ago

rc-notification


React Notification UI Component

NPM version build status Test coverage Dependencies DevDependencies npm download bundle size

Install

rc-notification

Usage

import Notification from 'rc-notification';

Notification.newInstance({}, notification => {
  notification.notice({
    content: 'content'
  });
});

Compatibility

IE / EdgeFirefoxChromeSafariElectron
IE11, Edgelast 2 versionslast 2 versionslast 2 versionslast 2 versions

Example

http://localhost:8001

online example: http://react-component.github.io/notification/

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

rc-notification is released under the MIT license.