Skip to content
This repository has been archived by the owner on Jan 22, 2024. It is now read-only.

evikza/toaster

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

40 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

toaster

Hi, there! 👋 This's a dead simple library script toast notifications. Based on Javascript.

Build Status GitHub file size in bytes

Try

Demo 🚀

Install

It's easy:

<link rel="stylesheet" href="toaster.min.css" />
<script src="toaster.min.js"></script>

… and initialize the script:

const toast = new toaster();

toast.error('Please wait a few minutes before you try again.');
Method Сall method
default toast.default()
info toast.info()
success toast.success()
warning toast.warning()
error toast.error()

Options

new toaster({
  selector: '.toaster',
  timeout: 5000,
  position: ['bottom', 'right'],
  unsafe: 1,
});

Version

0.0.4

About

Dead simple toast notifications

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published