Notification

Inline, actionable notification banner that surfaces a titled message with an optional recovery action

Category: feedback · WCAG 2.2-AA · notification, banner, message, feedback, actionable

Variants

Props

PropTypeDefaultDescription
titleReactNodeTitle text for the component.
descriptionReactNodeSupporting description text.
variant'info' | 'success' | 'warning' | 'error'infoSelects the visual style variant.
dismissiblebooleanfalseWhen true, shows a control to dismiss the component.
onDismiss() => voidCalled when the component is dismissed.
actionsReactNodeAction elements shown in the notification.
iconReactNodeIcon element rendered in the component.
labels{ dismiss?: string }Overrides for the component’s user-visible strings (i18n).

Design tokens

When to use

When not to use

How to build an accessible Notification in React →

Examples

Info

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

Dismissible

<Notification variant="success" title="Saved" dismissible onDismiss={handleDismiss} />

Actionable

<Notification variant="error" title="Upload failed" description="The connection dropped." actions={<Button onClick={retry}>Retry</Button>} />

Related components

← Back to docs