Skip to content

Latest commit

 

History

History
33 lines (27 loc) · 746 Bytes

README.md

File metadata and controls

33 lines (27 loc) · 746 Bytes

antd-message

Global message like ant-design

高仿 ant-design 全局消息提示

Installation

Using npm:

$ npm install antd-message --save

Using yarn:

$ yarn add antd-message

Example

import Message from 'antd-message';
window.message = Message;
message.success(content, timeout);

Renderings

Options

Three types: message.successmessage.warnmessage.error

params summary type default
content message content String -
timeout timeout the message unmount Number 3000 (ms)

License

MIT