Components • Alert

Alert

Contextual messages that need attention without interrupting flow. Choose variant to match urgency and outcome.

Info

<Alert variant="info">
  <AlertTitle>System update</AlertTitle>
  <AlertDescription>Maintenance window starts at 02:00 UTC.</AlertDescription>
</Alert>

Success

<Alert variant="success">...</Alert>

Warning

<Alert variant="warning">...</Alert>

Danger

<Alert variant="danger">...</Alert>
Accessibility

How Alert works with assistive tech

Role
  • alert (danger/warning), status (info/success)
Keyboard
  • not interactive (unless dismissible variant added)
ARIA attributes
  • aria-live=assertive for danger; aria-live=polite for other severities
Focus behavior
  • not-focusable

Severity conveyed via border-left color AND accessible role — not color alone. Icon is decorative (aria-hidden).