alert
error and warning use role="alert" — screen readers announce them immediately. info and success use role="status" for a polite announcement.
Your account is pending email verification.
Saved Your changes have been saved.
Heads up This action cannot be undone.
Failed Something went wrong. Please try again.
alert({ variant: 'info', content: 'Your account is pending email verification.' })
alert({ variant: 'success', title: 'Saved', content: 'Your changes have been saved.' })
alert({ variant: 'warning', title: 'Heads up', content: 'This action cannot be undone.' })
alert({ variant: 'error', title: 'Failed', content: escHtml(server.error) })