Skip to content

benergize/tiny-snack

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 

Repository files navigation

tiny-snack

Dead simple super small snackbar.

This is a very simple, very light weight snackbar implementation with no dependencies. To use, just link to tiny-snack.js and call TinySnack().

Example

TinySnack("This is the text that will show up in the snackbar.", "LINK TEXT", function() { 
    alert("This will appear when you click 'LINK TEXT.'"); 
});

//OR

TinySnack({
  "text": "This is the text that will show up in the snackbar.",
  "linkText": "LINK TEXT",
  "onclick": function() { alert("This will appear when you click 'LINK TEXT.'"); }
});

About

Dead simple super small snackbar.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published