alert-message
TypeScript icon, indicating that this package has built-in type declarations

0.1.24 • Public • Published

homepage: https://github.com/hyq2015/Message

introduction

show alert message on your webpage

usage

npm install -D alert-message

import Message from "alert-message"
import "path/to/node_modules/alert-message/lib/styles/index.min.css"

/**
 * @param args - {txt: "", time: 2500}, time default 2500(ms)
 */
Message.warn({txt: "warning text"});
Message.error({txt: "error text"});
Message.success({txt: "success text"});

Readme

Keywords

Package Sidebar

Install

npm i alert-message

Weekly Downloads

8

Version

0.1.24

License

MIT

Unpacked Size

21.2 kB

Total Files

20

Last publish

Collaborators

  • rickyhuang