Skip to content
  • Android
  • iOS
  • Web

Confirm Alert

A Confirm Alert component is a UI element that prompts users to confirm or cancel an action before proceeding. It typically displays a message asking for confirmation, along with "Confirm" and "Cancel" buttons, ensuring that the user consciously approves or rejects the action, often used for critical tasks like deletions or irreversible changes.

Live examples

Example.tsx

Attributes

NConfirm attributes
NameTypeDefaultDetails
isOpenbooleanOptional
descriptionstringOptional
titlestringOptional
classNamestringOptional
titleClassNamestringOptional
descriptionClassNamestringOptional
cancelClassNamestringOptional
confirmClassNamestringOptional
confirmTextstringOptional
cancelTextstringOptional
onResult(result: boolean) => voidRequired
onOpenChange((open: boolean) => void)Optional
childrenReactNodeOptional
Engine reference for Confirm AlertSet up engine components

Tags