How to build an accessible Notification in React

role="alert" for warning and error so assistive tech announces them assertively, role="status" for info and success; the variant icon is decorative (aria-hidden) and color is always paired with the icon and title, and the dismiss control is a labeled button

When to use a Notification

When not to use it

Accessibility

Role alert, verified at WCAG 2.2-AA.

Common mistakes

Avoid: Stacking Notifications in a fixed corner viewport on a timer to fake toasts

Prefer: <Toast> for ephemeral, floating, auto-dismissing feedback

Notification is an in-flow banner; faking toast behavior duplicates Toast and breaks layout expectations

Example

<Notification variant="info" title="Sync complete" description="Your files are up to date." />

See the full Notification reference →