For more info please check the components's official demos & documentation demos & documentation
MatSnackBar is a service for displaying snack-bar notifications.
Dismissal example with 6 seconds duration