Salesforce Developers Blog: Displaying User Notifications with the Lightning Component Framework

Using Toasts and Modals for User Notifications

Philippe Ozil provides us with patterns and best practices for displaying notification messages to users with user interface patterns called Toasts and Modals.

Philippe demonstrates how to display Toasts in Lightning Experience and Salesforce1 by leveraging an event that is native to the underlying container application. For Modals, he wrote a custom component and is freely sharing his code for developers to review and reuse.