@nanometer/nm
v1.2.3
Published
<h2 align="centre">Introduce:</h2> <h4> 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
34
Readme
Install with pnpm:
pnpm add @nanometer/nm --save-dev
import message from "@nanometer/nm";
import "@nanometer/nm/dist/style.css";
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 |