Skip to content

Instantly share code, notes, and snippets.

@iamjpg
Created May 30, 2019 01:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save iamjpg/d6508d5fcf69c6cfd752bc29d86d99b0 to your computer and use it in GitHub Desktop.
Save iamjpg/d6508d5fcf69c6cfd752bc29d86d99b0 to your computer and use it in GitHub Desktop.
Vitruvius Toast Signature
import Toast from 'path_to_toast_js';
let toast = new Toast();
toast.show({
type: 'success',
header: 'This is a Header',
message: 'This toast was created with the "removeIn" option meaning this toast will dissapear in 5 seconds.',
removeIn: 5000,
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment