Skip to main content
161

Search Lumen

Find components, APIs, guides, and recipes.

GitHub
React Native docs
FeedbackReact Native

Alert

Present inline native feedback using shared neutral, destructive, success, and warning treatments.

Public APILumenAlertReact Native

Native example

Use Alert

Use default for neutral notices and semantic variants for outcomes or risk. Keep the message actionable and avoid presenting routine information as an alert.

View verified React Native runtime capture
Alert rendered in the Expo web renderer Lumen playground
Verified runtime captureExpo web renderer
tsx
<LumenAlert variant="success">
  <LumenAlertTitle>Profile synced</LumenAlertTitle>
  <LumenAlertDescription>Available offline.</LumenAlertDescription>
</LumenAlert>

Reference

Public API

The primary shared and platform-specific options exposed by LumenAlert.

APIValues or typeDefaultDescription
variantdefault · destructive · success · warningdefaultSelects the semantic foreground, border, and tint.
childrenNative contentRequiredProvides alert content.
styleNative layout APIControls placement and sizing.
LumenAlertTitle / LumenAlertDescriptionPlatform text compositionReact Native uses explicit text roles because View does not inherit text color.

Native behavior

Design and accessibility

When to use it

Use default for neutral notices and semantic variants for outcomes or risk. Keep the message actionable and avoid presenting routine information as an alert.

Accessibility

An alert is a styled container, not an automatic live announcement. Applications decide when asynchronous content needs a platform announcement.

Shared component

Available on other platforms

Apple / SwiftUIAndroid / Compose
React Native docsNative primitives