1.0.14 • Published 5 years ago

antd-like-message v1.0.14

Weekly downloads
2
License
MIT
Repository
github
Last release
5 years ago

antd-message

Global message like ant-design

Original repo: https://github.com/bingqichen/antd-message/

Installation

Using npm:

$ npm install antd-message --save

Using yarn:

$ yarn add antd-message

Example

import { message } from 'antd-message';
message.success('hello, world!');
message.error(<span>Hello, World!</span>);
message.success('hello, world!', 1000);  // 1000 - timeout of message

Renderings

Options

Three types: message.successmessage.warnmessage.error

paramssummarytypedefault
contentmessage contentString-
timeouttimeout the message unmountNumber3000 (ms)

License

MIT