Fonteva provides a centralized method of handling messages within your app.
You can customize these warning messages using the Toast component. For example, you can configure your Toast messages to automatically dismiss after a certain period of time. You can also have messages displayed when a user takes an action on the page.
When using SalesForce Classic, izitoast is used. http://izitoast.marcelodolce.com/
When using Lightning, the SalesForce Toast component is used. https://developer.salesforce.com/docs/atlas.en-us.lightning.meta/lightning/ref_force_showToast.htm
Configurable Attributes
See FrameworkToast for more information on required Aura methods.
Use the following code example to enable Toast messages::
component.find('toastMessages').showMessage('TITLE','ERROR MESSAGE',AutoHideBoolean,'error')
JS