@bobliao/consolelay
TypeScript icon, indicating that this package has built-in type declarations

0.1.4 • Public • Published

A sample corner-popup component

This component can work with vue or react

@bobliao/consolelay

npm install @bobliao/consolelay

yarn add @bobliao/consolelay

import consoleLay from `@bobliao/consolelay`;

(...)
//Trigger a little popup with message
consoleLay.write('This is a message!');

//Trigger message popup with conditions
consoleLay.write({
		//Message
		m: "Put messages here",
		//Disappear delay
    //Could put "inf" to display infinite
		time: 8000,
    //line-style
		style: "",
		borderColor: "",
    //Could Customize class
		classAdd: "arrow-consoleLay-white",
    //Will go into here when click close or timmed up
		closeCall: function () {},
});
(...)

Readme

Keywords

none

Package Sidebar

Install

npm i @bobliao/consolelay

Weekly Downloads

1

Version

0.1.4

License

MIT

Unpacked Size

172 kB

Total Files

19

Last publish

Collaborators

  • bobliao