antd-like-message

Global message like ant-design

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
antd-like-message
101.0.145 years ago5 years agoMinified + gzip package size for antd-like-message in KB

Readme

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
params | summary | type | default --------- | --------------------------- | -------- | --------- content | message content | String | - timeout | timeout the message unmount | Number | 3000 (ms)

License

MIT