Temporary notification messages that auto-dismiss. Perfect for user feedback, confirmations, and alerts.
Show a success notification
Show an error notification
Show a warning notification
Show an info notification
Click to change where toasts appear:
// Simple notifications
Toast.aiab-success('Operation completed!');
Toast.error('Something went wrong');
Toast.aiab-warning('Please check your input');
Toast.aiab-info('New update available');
// With options
Toast.show({
type: 'success',
title: 'Success!',
message: 'Your changes have been saved',
duration: 5000,
position: 'top-right',
icon: true,
progress: true,
closable: true
});
// With actions
Toast.show({
type: 'info',
title: 'Confirm Action',
message: 'Are you sure you want to proceed?',
actions: [
{
label: 'Yes',
primary: true,
handler: () => console.log('Confirmed')
},
{
label: 'No',
handler: () => console.log('Cancelled')
}
]
});
// Clear all toasts
Toast.hideAll();