04
Content
- Titles say what happened, in a few words: "Directory sync failed".
- The description says why, and what to do, in a sentence or two.
- No exclamation marks; no Error or Warning in the title: the hidden word says it.
A message in the page: above a form, in a card, or across the top as a banner. It never takes focus, and never goes by itself.
<div>Server-rendered01
02
alert-icon<svg>The tone's icon, aria-hidden; the 3px edge beside it.alert-title<div>What happened, led by a hidden word: "Error:".alert-description<div>Why, and what to do.alert-actions<div>One primary action at most.dismiss<button>With onDismiss: "Dismiss".03
04