Socket
Socket
Sign inDemoInstall

toaststrap

Package Overview
Dependencies
5
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    toaststrap

A simple, lightweight JavaScript library for showing Bootstrap 5 toast popups.


Version published
Weekly downloads
10
increased by400%
Maintainers
1
Created
Weekly downloads
 

Changelog

Source

[1.1.0] - 2021-11-21

Performance has been improved, issue() and issue() fixed, and some improvements added.

Added

  • snackbar attribute.
  • onClose hook.
  • onShow hook.
  • subtitle attribute.
  • offset attribute.
  • Added type-checking for browsers version
  • Added show a progress-bar in snackbar version.
  • Added the ability to set a subtitle or relative date.

Changed

  • Attribute datetime deprecated and no longer used. (Alternative option subtitle).
  • Attribute noHeader deprecated and no longer used. (Alternative option snackbar).
  • Attribute onCloseCallBack deprecated and no longer used. (Alternative option onClose hook).
  • Attribute space deprecated and no longer used (Alternative option offset).
  • The libraries uuid and dayjs have been removed, I wrote a small code that serves the same purpose.
  • The progress bar has been improved! I used css effects instead of javascript intervals.

Fixed

  • issue-1048780479 Has been fixed.
  • issue-1048757027 Has been fixed.

Readme

Source

Toaststrap v1.1.0

Toaststrap

Toaststrap is a simple, lightweight JavaScript library for showing Bootstrap 5 toast popups.

العربية
Changelog

NPM version NPM downloads NPM downloads
GitHub Sponsors donate button GitHub Sponsors donate button

Preview

I created this library for everyone who uses Bootstrap 5 and wants to show some beautiful notifications for his users.

Features

  • ✅ Pure JavaScript without jQuery.
  • 🇸🇦 RTL support.
  • ✅ Support hooks.
  • ✅ Easy to initialize and use.
  • 🔉 Support sound.
  • 🌈 Quick and efficient.
  • 🎨 Customizable.
  • 🆙 up-to-date.

Documentation

Check the Documentation to get you started!

Demo

Have fun with Toaststrap's Initializer!

Contribute

Show your ❤️ and support by giving a ⭐. Any suggestions are welcome!

Sponsor

Bugs and feature requests

Found a bug or have a feature request? Please open a new issue

License

Licensed under MIT

Keywords

FAQs

Last updated on 21 Nov 2021

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc