Skip to content

Alert

Priority alert + AlertStack (auto-sorts by severity, correct aria-live). Color is paired with a P-level code and glyph.

P2

Degraded performance

Sensor coverage reduced.

P3

Status update

Sync complete.

PropTypeDefaultDescription
severity'info' | 'caution' | 'critical'requiredMaps to P3/P2/P1, a glyph, and aria-live (assertive for critical).
titlestringrequiredHeadline.
detailstringSupporting line; wraps, never clips.
onDismiss() => voidWhen provided, shows the dismiss control.
  • info / P3
  • caution / P2
  • critical / P1
  • dismissible
Do
Use AlertStack so the most critical alert sorts to the top.
Don’t
Don’t use critical for routine info — it announces assertively.

Colors come only from Semantic tokens, so this component re-themes automatically across Day / Night-NVG / Mono with no variant swap. It uses CSS logical properties, so it mirrors correctly in RTL.