Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

antd-message

bingqichen87MIT1.0.10

Global message like ant-design

react, message, 消息提示, antd, ant-design

readme

antd-message

Global message like ant-design

高仿 ant-design 全局消息提示

Installing

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