5.6.0 • Published 11 months ago

dw-neit-rc-notification v5.6.0

Weekly downloads
-
License
MIT
Repository
-
Last release
11 months ago

dw-neit-rc-notification

React Notification UI Component

NPM version dumi build status Test coverage npm download bundle size

Install

dw-neit-rc-notification

Usage

import Notification from 'dw-neit-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: https://notification-react-component.vercel.app

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

dw-neit-rc-notification is released under the MIT license.