wc-notify

1.2.0 • Public • Published

Web Component Notification

A simple and customizable notification web component.

Getting started

Quick instalation in three simple steps:

  1. Install
npm i wc-notify
  1. Add at the root of your project (see examples in some popular frameworks)
<wc-notify></wc-notify>
  1. Use
import { notify } from "wc-notify";

notify("An awesome notification 🥳");

Customization

You can pass an object as second argument to the notify function to customize the notification:

notify("Logged in successfully!", {
  duration: 4000 // in milliseconds
});

Examples

NextJS

React (Vite)

Astro

Package Sidebar

Install

npm i wc-notify

Weekly Downloads

0

Version

1.2.0

License

ISC

Unpacked Size

3.91 kB

Total Files

4

Last publish

Collaborators

  • genaroibc