toast({
type: 'success', // success, error, warning, info, loading
title: 'Notification', // required
id: 'my-id', // optional — use for updates
message: 'Text block', // optional — plain text message
avatar: '/path/to/image.jpg', // optional — avatar image URL
avatarSize: '32px', // optional — avatar size (default: 18px)
details: [ // optional — expandable rows
{ label: 'Key', value: 'Value' },
],
footer: 'Footer text', // optional
actions: [ // optional — buttons in expanded body
{
label: 'Click me',
icon: 'check',
event: 'my-event',
data: {},
color: '#22c55e',
confirm: false
},
],
duration: 5000, // optional — override config duration
persistent: false, // optional — never auto-dismiss
color: '#8b5cf6', // optional — override type color
progress: 0.5, // optional — show progress bar (0 to 1)
icon: 'star', // optional — override type icon (registered name)
vibrate: true, // optional — vibrate on mobile (true or [ms] pattern)
});