tiny-essentials
Version:
Collection of small, essential scripts designed to be used across various projects. These simple utilities are crafted for speed, ease of use, and versatility.
66 lines (45 loc) β’ 2.25 kB
Markdown
Tiny hi! Weβre back with a super tiny fresh new version of **Tiny-Essentials**. :3
Say hello to **two new notification systems** that just landed in this release:
- **Dynamic notifications** with optional **titles**, **avatars**, and rich **HTML/text** content
- Individual **close buttons** for each notification, plus a **clear all** button with a sleek broom icon π§Ή
- Mark notifications as **read/unread** with visual distinction
- Clickable notifications with custom `onClick` handlers
- Overlay with dimmed background and intuitive outside-click to close the notification list
- Smooth animations on notification removal, preventing UI freezes
- Live badge count that recalculates accurately from the DOM
- Easy-to-use static template injection for instant integration
The UI is minimal but expressive, placing the notification bell at the top-right corner, with a badge showing unread counts. Notifications appear in a clean list, with avatars for quick identification.
Simply call `.add()` with your message or structured notification object, and watch your notifications come to life!
---
**TinyToast** is a flexible and minimalist toast/notification system built with JavaScript.
Easily display beautiful, customizable, auto-dismissable toasts with optional avatars and click events!
```js
toaster.show('Hello world!');
```
```js
toaster.show({
message: 'File uploaded successfully!',
title: 'Success',
onClick: (event, close) => {
alert('Notification clicked!');
close(); // Close the notification manually
},
html: false,
avatar: 'https://example.com/avatar.png'
});
```
---
For a complete reference of all options, internals, and usage patterns, check out the detailed documentation file:
> π **docs/v1/libs/TinyNotifyCenter.md**
> π **docs/v1/libs/TinyToastNotify.md**
**Full Changelog**: https://github.com/JasminDreasond/Tiny-Essentials/compare/1.10.2...1.11.0