The Toast is a UI component that displays pop-up notifications.
You can specify one of the four predefined types of notifications, depending on the mood of the message:
A blue toast with a message bubble icon.
A yellow toast with an exclamation mark icon.
A red toast with an X icon.
A green toast with a check mark icon.
In this demo, toggle check boxes to see the 'success' and 'error' notification types.
If you need to specify other Toast properties in addition to type and displayTime, call the notify(options, type, displayTime) method and pass an object as the argument. In this object, you can set any Toast property, such as shading, position, width, height, and others.