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, it is very useful.
* ✨Very small space and memory footprint.* 🎗Regardless of platform, combine any framework you like.
* 🧪Provides four default message types and supports extension.
* 🎉You can use element passing.
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 |
The importance of the message is self-evident, the better way to prompt is better delivery, which is my original intention to create it.Light a little star if you want🎀🎁
* Submit issues https://github.com/webvs2/-nm-message/issues
* Visit the github address https://github.com/webvs2/-nm-message