0.0.6 • Published 7 years ago
yc-progress v0.0.6
rc-notification
React Notification UI Component
Development
npm install
npm start
Example
http://localhost:8000/examples/
online example: http://react-component.github.io/notification/examples/
Feature
- support ie8,ie8+,chrome,firefox,safari
install
Usage
var Notification = require('rc-notification');
var notification = Notification.newInstance();
notification.notice({
content: 'content'
});
API
Notification.newInstance(props)
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.