When to use it
Use for short consequential confirmations. Keep visibility and mutation state in the application and reserve destructive styling for irreversible or difficult-to-recover actions.
Request a controlled native confirmation with explicit cancel and confirm states.
Native example
Use for short consequential confirmations. Keep visibility and mutation state in the application and reserve destructive styling for irreversible or difficult-to-recover actions.
<LumenAlertDialog
visible={showConfirmation}
title="Delete report?"
confirmLabel="Delete"
destructive
onConfirm={deleteReport}
onDismiss={() => setShowConfirmation(false)}
/>Reference
The primary shared and platform-specific options exposed by LumenAlertDialog.
| API | Values or type | Default | Description |
|---|---|---|---|
| visible | boolean | Required | Controls native modal presentation. |
| title / description | Native localized text | Description optional | Explains the decision. |
| confirmLabel / cancelLabel | Native localized text | Cancel label: Cancel | Names both actions. |
| destructive | boolean | false | Communicates whether the confirm action is destructive. |
| confirmDisabled | boolean | false | Controls whether the confirm action can be activated. |
| confirmLoading | boolean | false | Communicates asynchronous confirmation progress. |
Native behavior
Use for short consequential confirmations. Keep visibility and mutation state in the application and reserve destructive styling for irreversible or difficult-to-recover actions.
Native modal focus stays inside the confirmation surface and cancel and confirm remain independently named actions.
Shared component