Skip to content

evertonstrack/simple-toast

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 

Repository files navigation

simple-toast

Simple toast in plain javascript in no dependencies. Build with ECMAScript 6, for compatibility with older browsers use a transpiler like Babel

Features

  • Build in plain javascript (no dependencies)
  • 4 types o toast (Success, Error, Info, Warning)

..under construction

Usage

const Toast = new ToastMessenger();

// Exemple
// Toast.success(description, title)

// Description
Toast.success('Simple toast in plain javascript in no dependencies');

// Description and title
let message = [
  'Simple toast in plain javascript in no dependencies.', // description
  'Simple toast' // title - title has default texts: "Success", "Error", "Info", "Warning"
];

Toast.success(...message);

Copyright

MIT © Everton Strack