Skip to content

A material design inspired snackbar for your webpage

License

Notifications You must be signed in to change notification settings

bardsoleim/Snackbar

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Snackbar

A material design inspired snackbar for your webpage

Usage

  • Import the js and css file to your project
  • Call the function when needed
createSnackbar(message, actionText, action);

message main text that will be displayed to the user
actionText button text.
action function that the actionbutton will bind an on-click listener for, if not provided with a function it will act as an dissmiss button.

Sample Usage

createSnackbar("Hello world");
createSnackbar("Hello world", "Click", foo(););

Snackbar will create a brief message to the user. A maximum number of 3 snackbars can be shown at a given time with its duration set to 5 seconds.

About

A material design inspired snackbar for your webpage

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published