React-notice-message (通知信息组件)
a simple and free messages notice with and for React.
Demo & Examples
Live demo: asd0102433.github.io/react-notice-message/example
The live demo is still running v1.0.8
.
To build the new 1.0.0 examples locally, clone this repo then run:
npm installnpm start
Then open localhost:8080
in a browser.
或者直接 open example/index.html
Installation
npm install react-notice-message --save
At this point you can import react-notice-message and its styles in your application as follows:
; // you can modify css in the react-notice.css or Write one other css style , because the css is simple and crude.;
Usage
var reactNotice = ; //reactNotice.show(document, {closeTime:"3000"});reactNotice; //Value: 3000 or infinitereactNotice;
options
closeTime
: Any time, 3000 5000 or infinite;
Methods
// Show notice messagesreactNotice; //Get history messagesreactNotice;
License
MIT Licensed. Copyright (c) aotumen 2016.