Alerts
Materialize is a modern responsive CSS framework based on Material Design by Google.
Alerts keep important contextual feedback visible in the page. Use a semantic variant, optional icon, and a close action when the message can be dismissed.
Variants
info
Information
check_circle
Saved successfully
warning
Heads up
error
Something went wrong
<div class="alert alert-success" role="status">
<i class="material-icons alert-icon" aria-hidden="true">check_circle</i>
<div class="alert-content">
<strong class="alert-title">Saved successfully</strong>
<p class="alert-message">Your changes have been saved.</p>
</div>
</div>Outlined and compact
info
task_alt
Image content
New design system update
Dismissible alert
lightbulb
Try the new keyboard shortcuts
const alert = Alert.init(document.querySelector('.alert'), {});
alert.dismiss();
alert.open();