Use Alert for messages the reader should notice but doesn't need to act on right away. Reach for Dialog when the user must acknowledge before continuing.
role="alert" is set automatically so screen readers announce the message.
The Alert never tracks dismissed state itself — the parent decides what to render after onDismiss fires.
By default the Alert pulls the icon for its tone from the active
SemanticIconsProvider. Pass icon to override per-instance with any
icon component matching { size?: number; color?: string }.
Override the tone's default icon. Pass `null` to render no icon at
all (rare — the icon doubles as the visual severity cue).
onDismiss
() => void
—
When provided, renders a close button in the top-right that calls back
when pressed. The Alert itself doesn't track dismissed state — the
parent decides whether to keep rendering.
testID
string
—
—
title
string
—
Bolded heading line. Optional — provide one of title or description.
tone
enum
info
Severity of the alert. Drives the color tone and the default icon.
@defaultValue 'info'