UI: Components

SnackBar

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

Examples

Usage

<ui-toast></ui-toast>

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