0.0.4 • Published 4 months ago

popwave v0.0.4

Weekly downloads
-
License
MIT
Repository
-
Last release
4 months ago

custom-toaster

A lightweight, clean, and interactive toast notification library for Vanilla JavaScript/TypeScript projects. No dependencies required.

Features

  • Simple and modern UI with smooth animations
  • Beginner Friendly
  • Supports success, error, info, and warning toast types
  • Light weight > 50kb
  • Customizable duration
  • TypeScript support
  • Zero dependencies (if you use Vite)

Installation

Install via npm:

npm install popwave

Usage

import popwave from 'popwave';

popwave.success('Operation completed!');
popwave.error('Something went wrong.', 3000);
popwave.info('Check this out!');
popwave.warning('Be careful!');

API

APIDescriptionParameters
showDisplays a custom notification{ message, type?, duration? }
successShows a success notificationmessage, duration?
errorShows an error notificationmessage, duration?
infoShows an info notificationmessage, duration?
warningShows a warning notificationmessage, duration?
  • message: String (required) - The text to display in the notification.
  • type: 'success' | 'error' | 'info' | 'warning' (optional) - The notification style (default: 'info' for show).
  • duration: Number (optional) - Time in milliseconds before auto-dismissal (default: 5000).
0.0.4

4 months ago

0.0.3

4 months ago

0.0.2

4 months ago

0.0.1

4 months ago

1.0.2

5 months ago

1.0.1

5 months ago

1.0.0

5 months ago