Skip to content

Alert

An inline banner with an icon, a title and a message.

Group: Feedback · Kind: macro · in the lite catalog

example
SavedYour changes have been saved.
type · info
SavedYour changes have been saved.
type · warning
type · error

Open in the playground

The same specimen painted by React, SwiftUI, Compose and gpui.

exponential-ui-alert on Web
exponential-ui-alert on iOS
exponential-ui-alert on Android
exponential-ui-alert on Desktop
Prop Type Required Bindable Description
title string yes – The banner heading.
message string – – The detail under the heading.
type info | success | warning | error – – The severity, which picks the icon and tone. Default "info".

None.

None.

none

No basic catalog component maps here.

Box · Icon · Text

Role: alert

alert for warning/error, status otherwise. alert for warning/error, status otherwise ($a11y).

Not focusable; no keys.

Recipe parts: Alert/root Alert/icon Alert/body Alert/title Alert/message

Keyed by: type :hover :pressed :focus :disabled :checked :open :selected :invalid :dragover

Themes · Write a theme

Icon · Text · Badge · Chip · EmptyState · Progress · Meter · Ring