UI: Components

Toast

Toast presents a message to the user, in the bottom right corner, managed through a <button> HTML element and the popover API.

NOTE: A more flexible and advanced version of this component is SnackBar

Examples

Usage

<ui-toast></ui-toast>

// JavaScript
const toast = document.querySelector('ui-toast');
toast.showToast('Message', 'type', duration);