1.2.0 • Published 1 year ago

wc-notify v1.2.0

Weekly downloads
-
License
ISC
Repository
github
Last release
1 year ago

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