Skip to content

webvs2/-nm-message

Repository files navigation

Introduce:

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.

Feature:

* ✨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:

Install with pnpm:

pnpm add @nanometer/nm --save-dev

Use:

import message from "@nanometer/nm";

message({ type: "success", durationTime: 3000, content: "Hello World" });
or;
message("Hello World");

API:

  • 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

Contact author:

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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published