@nanometer/nm
v2.0.1
Published
<h1 align="centre">Introduce:</h1> <p> This is a great message prompter, it takes up very little memory and space, but provides common usage, and from a modern front-end build, you can use it alone in the project or incorporate it into the base library,
Downloads
49
Readme
Install with pnpm:
pnpm add @nanometer/nm --save-dev
import message from "@nanometer/nm";
message({ type: "success", durationTime: 3000, content: "Hello World" });
or;
message("Hello World");
- Parameter mode or use directly
| Name | Description | | :---------------: | :--------------------------------- | | type | [success,warning,info,error] | | durationTime | Duration (Default: 3 seconds) | | calss | CSS state customization | | content | [string,node] | | postEvent | Prompts for post-completion events | | beforeEvent [new] | Pre-close event | | suffix [new] | [string] postcontent | | suffixEvent [new] | suffix click events |