Notification

React full-width notification banner for system messages at the top of a page: semantic types, a bold lead, actions, and a dismiss button. RTL ready.

Notification is the page-level banner for system messages. Set the type, add a bold lead, and pass onClose to make it dismissible.

When to use

Use Notification for messages that concern the whole page or service: planned downtime, a policy change, or an account issue that blocks progress. Place it above the page content, once, and keep the lead to a few words.

For a message tied to one section, use InlineAlert. For confirmations that fade, use NotificationToast.

Examples

Basic

Semantic types

With actions

Arabic (RTL)

Props

Props declared by Notification. Native attributes of the underlying element pass through.

PropTypeDefaultDescription
type"neutral" | "success" | "warning" | "info" | "critical"
childrenrequiredreact.ReactNodeThe message body - always present per SDGA (the one required content).
leadreact.ReactNodeBold lead-in shown before the message, e.g. "Important:".
iconreact.ReactNodeFeatured leading icon. Pass false to hide it; defaults to the type's glyph.
actionsreact.ReactNodeTrailing action row - compose <Link tone="neutral"> and/or <Button variant="black" size="md"> (the exact SDGA action variants).
onClose() => voidProvide to render the trailing ✕ and make the banner dismissible.
openbooleanControlled visibility. Pair with onClose to own the state yourself.
closeLabelstringLocalized close-button label. Defaults to "Dismiss".
live"polite" | "assertive"Wire the banner into the a11y tree as a live region. polite (role=status) announces gracefully; assertive (role=alert) interrupts. Omit for static banners.

Accessibility

The banner uses role="alert" for error and warning types and role="status" for the rest, so screen readers announce it on arrival. Actions are real buttons or links and the dismiss control has an accessible name.

Keep the banner in the document flow so keyboard users encounter it before the content it affects.